macOS Ventura 13.1
brew services start clash
ps|grep clash
并没有发现 clash 启动,而且会弹出很多同样的通知,而且是不停的弹出,如下图
进入过 Recovery
模式,并且执行过命令:
csrutil disable
后来又csrutil enable
了
我已经重装系统了,但是还是有这个问题
![]() |
1
Williamongh 282 天前
删除启动项
|
2
Sample OP @Williamongh 但我想开机运行 clash 啊
|
![]() |
5
weeei 281 天前
@Sample 做成后台服务:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.github.Dreamacro.clash</string> <key>Program</key> <string>/bin/sh</string> <key>ProgramArguments</key> <array> <string>/bin/sh</string> <string>/usr/libexec/clash-wrapper</string> </array> <key>ProcessType</key> <string>Background</string> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <true/> </dict> </plist> |
![]() |
6
weeei 281 天前
clash-wrapper 的内容:
#!/usr/bin/env sh set -e /usr/bin/clash -d /usr/etc/clash |
![]() |
7
weeei 281 天前
加载服务:
launchctl load -w /Library/LaunchDaemons/com.github.Dreamacro.clash.plist |
8
Sample OP @weeei 这些我知道,无论是系统级别的还是 ~/Library/Launch...下都出现我上面那些问题,我最后写了 shell 脚本把要开机的一些命令行打包一起手动启动了,这个我估计是新系统的问题,如果你是最新的 macOS 不妨试试。
最后,感谢你的回答,有心了。 |
9
ihwbunny 272 天前
装个配置描述文件,参考: https://www.bilibili.com/video/BV15A411R71u
|