在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