在 OS X El Capitan 中有一个跟安全相关的模式叫 SIP(System Integrity Protection ) ,它禁止让软件以 root 身份来在 mac 上运行,并且对于目录 /System 、/sbin、/usr(不包含/usr/local/) 仅仅供系统使用,其它用户或者程序无法直接使用,下面记录一下禁用 SIP 的方法。
禁用 SIP 保护机制的步骤
- 重启系统,按住 
Command + R进入恢复模式。 - 点击顶部菜单栏 
实用工具中的终端。 - 输入以下命令来禁用 
SIP保护机制。 
# 进入终端 查看sip状态csrutil status输出:System Integrity Protection status: enabled/disabled# 然后重启,按住command+r进入恢复模式,然后再进入终端# 关闭sipcsrutil disable输出Successfully disabled System Integrity Protection. Please restart the machine for the changes to take effect.(成功关闭系统完整性保护。请重启机器以使更改生效。)这就表示系统完整性保护(SIP)已经关闭成功了。然后重启即可# 开启sip保护同理csrutil enable
**
