How to Disable System Integrity Protection (rootless) in OS X El Capitan

mac在10.11之后增加了一个功能,号称“System Integrity Protection, often called rootless”,有了这个功能,以下目录的东西都不能动。

/System
/sbin
/usr (with the exception of /usr/local subdirectory)

但也带来了一些问题,比如升级openssl的时候就一直失败。

有一个关掉这个feature的办法。

1. 重启mac,按住“command+R”,进入Recovery模式。
2. 选择“工具”里面的“terminal”
3. 输入 csrutil disable;reboot

mac会自动重启,关掉这个feature。

参考

原文地址:https://www.cnblogs.com/wardensky/p/5820050.html