File tree Expand file tree Collapse file tree 2 files changed +40
-3
lines changed
src/content/docs/awful-mac Expand file tree Collapse file tree 2 files changed +40
-3
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ export default defineConfig({
9393 {
9494 label : '非蠢既坏的 MacOS' ,
9595 items : [
96- { label : '沉浸在自己的世界,自以为是的 MacOS' , slug : 'awful-mac/mac-cmd' } ,
96+ { label : '面向开放 MacOS 的一小步 ' , slug : 'awful-mac/mac-cmd' } ,
9797 ] ,
9898 } ,
9999 {
Original file line number Diff line number Diff line change 11---
2- title : " 向后兼容性极差的 Mac CMD "
2+ title : " 面向开放 MacOS 的一小步 "
33---
44
5+ ## 关闭 SIP
6+
7+ SIP 是 System Integrity Protection 的简写,译为系统完整性保护。目的是为了限制 root 账户对系统的完全控制权,也叫 Rootless 保护机制。Mac 系统中 SIP 状态默认是开启的。
8+
9+ 终端输入 ` csrutil status ` 即可看到 SIP 的状态是 disable 还是 enable 。
10+
11+ ** 关闭或开启 SIP**
12+
13+ 1 . 重启 Mac ,按住 Command + R 直到屏幕上出现苹果的标志和进度条 ,进入 Recovery 模式 ;
14+ 2 . 在屏幕上方的工具栏找到并打开终端,输入命令 ` csrutil disable ` ;
15+ 3 . 关掉终端,重启 Mac ;
16+ 4 . 重启以后可以在终端中查看状态确认 。
17+
18+ 开启 SIP 只需在上面第 2 步命令改为 ` csrutil enable ` ,具体操作见附件。
19+
20+ [ 苹果M芯片的MAC的SIP如何关闭?M1 MAC关闭Sip方法教程分享!(适用于M1 M2 M3).zip] ( https://github.com/user-attachments/files/24414169/M.MAC.SIP.M1.MAC.Sip.M1.M2.M3.zip )
21+
522
623## 允许任何来源
724
@@ -15,4 +32,24 @@ sudo spctl --master-disable
1532
1633![ ] ( https://cdn.jsdelivr.net/gh/hoochanlon/picx-images-hosting@master/imgs/uploads/2025/PixPin_2025-12-31_23-08-32.png )
1734
18- ##
35+ 完成后,前往“系统设置”>“隐私与安全性”>“安全性”,勾选“任何来源”。
36+
37+ ## “文件损坏扔入废纸篓”
38+
39+ 清除应用的隔离属性
40+
41+ ```
42+ xattr -cr
43+ ```
44+
45+ ```
46+ sudo xattr -d com.apple.quarantine
47+ ```
48+
49+ ```
50+ # 二选一
51+ sudo xattr -d com.apple.quarantine /Applications/应用名称.app
52+ xattr -cr /Applications/应用名称.app
53+ ```
54+
55+
You can’t perform that action at this time.
0 commit comments