在
OS X El Capitan
中有一个跟安全相关的模式叫 SIP(System Integrity Protection )
,它禁止让软件以 root
身份来在 mac
上运行,并且对于目录 /System 、/sbin、/usr(不包含/usr/local/)
仅仅供系统使用,其它用户或者程序无法直接使用,下面记录一下禁用 SIP
的方法。禁用 SIP 保护机制的步骤
重启系统,按住
Command + R
进入恢复模式。点击顶部菜单栏
实用工具
中的终端
。输入以下命令来禁用
SIP
保护机制。
csrutil disable
Successfully disabled System Integrity Protection. Please restart the machine for the changes to take effect.
然后再次重启系统即可。
重新打开
SIP
的方法同上,只是终端中输入的命令改为以下命令。
csrutil enable