Could not set environment: 150: Operation not permitted while System Integrity Protection is engaged
时间: 2023-11-27 08:51:07 浏览: 675
rsync同步时出现rsync: failed to set times on “xxxx”: Operation not permitted
当出现"Could not set environment: 150: Operation not permitted while System Integrity Protection is engaged"的错误提示时,这意味着系统完整性保护(SIP)正在运行,而您的操作需要关闭SIP。为了解决这个问题,您可以按照以下步骤进行操作:
1. 从Apple菜单中,选择"重新启动",然后选择"重新启动"。
2. 在重启时按住"Command"和"R"按钮,这将启动您的计算机进入恢复模式。
3. 在恢复模式下,从菜单栏选择"实用工具",然后选择"终端"。
4. 在终端中,输入命令"csrutil disable",然后按下"Enter"键。这将禁用系统完整性保护。
5. 重新启动您的计算机,完成后您将能够执行需要关闭SIP的操作。
请注意,关闭SIP可能会降低您的计算机的安全性,因此在完成您的操作后,建议重新启用SIP,可以通过在恢复模式下执行"csrutil enable"命令来实现。这将重新启用系统完整性保护,提高您的计算机的安全性。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Mac 域名解析不了,能ping通ip,但ping不通网址](https://blog.csdn.net/zjcxhswill/article/details/116176743)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [mac环境配置错误,导致命令行工具失效,亲测有效。](https://blog.csdn.net/weixin_42689212/article/details/121528885)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [rsync同步时出现rsync: failed to set times on “xxxx”: Operation not permitted](https://download.csdn.net/download/weixin_38515573/12901632)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文