Created
November 4, 2019 15:59
Revisions
-
imhet created this gist
Nov 4, 2019 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ SIP 是 System Integrity Protection 的简写,译为系统完整性保护。 SIP 是 OS X El Capitan 时开始采用的一项安全技术,目的是为了限制 root 账户对系统的完全控制权,也叫 Rootless 保护机制。 Mac 系统中 SIP 状态默认是开启的。近期更新了系统版本导致该状态重新被打开,在终端运行一些命令时提示 "Operation not permitted" 。 ## 查看 SIP 状态 终端输入 `csrutil status` 即可看到 SIP 的状态是 disable 还是 enable 。 ## 关闭或开启 SIP 1. 重启 Mac ,按住 Command + R 直到屏幕上出现苹果的标志和进度条 ,进入 Recovery 模式 ; 2. 在屏幕上方的工具栏找到并打开终端,输入命令 `csrutil disable` ; 3. 关掉终端,重启 Mac ; 4. 重启以后可以在终端中查看状态确认 。 开启 SIP 只需在上面第 2 步命令改为 `csrutil enable` 即可。