MAC关闭SIP:system integrity protection is on, some f

在MAC下安装了iotop,在启动的时候报了一个错:

system integrity protection is on, some features will not be available

网上查了下,是因为Mac启用了SIP策略,那该如何关掉SIP呢?

 

1.首先查看sip状态

sudo csrutil status

输出如下:

System Integrity Protection status: enabled.

2.尝试禁止sip:

sudo csrutil disable

输出如下:

csrutil: failed to modify system integrity configuration. This tool needs to be executed from the Recovery OS.

该提示说:要进入恢复模式才能执行该命令

3. 进入恢复模式

重启Mac,然后在系统刚启动时按下:Command+r

4. 进入恢复模式后打开终端

输入:csrutil disable

如图,显示禁用成功,让我们重启电脑生效

5. 重启Mac

6. 重新查看sip状态

sudo csrutil status

关闭SIP成功!可以执行iotop了,输入:sudo iotop

博主:测试生财

座右铭:专注测试与自动化,致力提高研发效能;通过测试精进完成原始积累,通过读书理财奔向财务自由。

csdn:https://blog.csdn.net/ccgshigao

博客园:https://www.cnblogs.com/qa-freeroad/

51cto:https://blog.51cto.com/14900374


猜你喜欢

转载自blog.51cto.com/14900374/2531147