如何再次启动任务门控?


Answers:


9

您可以重新启动或运行

sudo launchctl load /System/Library/LaunchDaemons/com.apple.taskgated.plist

1
但是,taskgated仍未运行!
迈克尔

4

当我运行时launchctl load,出现此错误:

/System/Library/LaunchDaemons/com.apple.taskgated.plist: Operation already in progress

所以我不得不跑:

sudo launchctl unload /System/Library/LaunchDaemons/com.apple.taskgated.plist

其次是:

sudo launchctl load /System/Library/LaunchDaemons/com.apple.taskgated.plist

即便如此,它还是花费了半分钟的时间才出现ps


1
从El Capitan开始,在使用SIP(support.apple.com/en-us/HT204899)时,您将无法卸载任务。您需要禁用它(apple.stackexchange.com/questions/208478/…)以执行此操作。重新启动可能更容易...
donovan.lampa

0

不带sudo使用此命令。(曾在优胜美地工作)

launchctl load /System/Library/LaunchDaemons/com.apple.taskgated.plist

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.