2016-10-04 92 views
0

在我的mac上,mysql重啓後突然停止工作。 很多搜​​索後,我檢查了我的文件權限被搞砸了,由於它的MySQL套接字文件無法在TMP無法重置mac上的權限(el capitan)/ tmp文件夾

創建

我試圖重新使用下面的命令按權限此url

在/ usr /的libexec/repair_packages --repair - 標準-PKGS --volume/

結果:

Permissions differ on "tmp", should be drwxrwxrwt , they are lrwxr-xr-x . Unable to set owner & group on "tmp". Error 1: Operation not permitted Unable to set permissions on "tmp". Error 1: Operation not permitted ACL found but not expected on 'System'. Unable to set owner & group on "System". Error 1: Operation not permitted Unable to set permissions on "System". Error 1: Operation not permitted

任何人都可以知道我可以解決這個問題嗎? 我想讓mysql在我的機器上運行。

+0

你的'/ tmp'是一個符號鏈接而不是一個普通的目錄嗎? –

+0

yes顯示: lrwxr-xr-x @ 1 root wheel 11 Sep 17 2015/tmp - > private/tmp – yogendra689

回答

1

修復了這個問題,在下面的網址提供的步驟: https://www.reddit.com/r/mac/comments/55s9yg/getting_an_error_message_on_startup_coretelephony/

這是使用var目錄「/ tmp目錄」權限的問題。 如果您嘗試更改此目錄的權限,則OS X不要讓此更改,因爲系統中存在「系統完整性保護」。在更改權限之前,必須禁用此SIP。重新啓動計算機,並按住Command + R鍵,直到屏幕上出現蘋果標誌

  1. 重啓你的Mac進入恢復模式:

    試試這個。

  2. 單擊實用程序>終端。在終端窗口中,輸入'csrutil disable',然後按Enter鍵。重新啓動您的Mac。
  3. 重新啓動Mac後,嘗試更改手動(命令:'sudo chmod 1777/tmp')或下載應用程序:(我推薦此實用程序執行此操作:OnyX 3.1.8 for OS X 10.11 El Capitan - 下載鏈接: http://joel.barriere.pagesperso-orange.fr/download/1011/OnyX.dmg)5.1在應用程序中,選擇維護 - >權限,然後點擊執行。這修復了所有權限問題(包括更改權限'/ tmp'以更正)。
  4. 當進程結束時,執行命令'sudo chmod 1777/tmp',只需重新啓動Mac即可。
  5. 現在,當你改變了許可,需要啓用「系統完整性保護 」,更改爲:「csrutil啓用」
  6. 重新啓動你的Mac,並按住Command + R鍵,直到屏幕上出現蘋果標誌。點擊實用程序>終端。在終端窗口中,輸入'csrutil enable',然後按Enter鍵。重新啓動您的Mac。它完成了:-)它將工作:-)