在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

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

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

5. 重启Mac

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

6. 重新查看sip状态

sudo csrutil status

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

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

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

快送门:各种学习资料与大厂招聘

博主:测试生财(一个不为996而996的测开码农)

座右铭:专注测试开发与自动化运维,努力读书思考写作,为内卷的人生奠定财务自由。

内容范畴:技术提升,职场杂谈,事业发展,阅读写作,投资理财,健康人生。

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

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

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

微信公众号:测试生财(定期分享独家内容和资源)

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