未找到 MDS 工作者

未找到 MDS 工作者

我已移除 MDS 工作程序(以摆脱 Spotlight)。在我的控制台中,launchd 似乎正在尝试找到它。有人知道我如何停止 launchd 以搜索 Spotlight 吗?(哈哈)

10-12-10 9:39:27 AM com.apple.launchd[1] (com.apple.metadata.mds[834]) Exited with exit code: 1
10-12-10 9:39:27 AM com.apple.launchd[1] (com.apple.metadata.mds) Throttling respawn: Will start in 10 seconds
10-12-10 9:39:37 AM com.apple.launchd[1] (com.apple.metadata.mds[838]) posix_spawn("/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Support/mds", ...): No such file or directory
10-12-10 9:39:37 AM com.apple.launchd[1] (com.apple.metadata.mds[838]) Exited with exit code: 1
10-12-10 9:39:37 AM com.apple.launchd[1] (com.apple.metadata.mds) Throttling respawn: Will start in 10 seconds
10-12-10 9:39:47 AM com.apple.launchd[1] (com.apple.metadata.mds[843]) posix_spawn("/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Support/mds", ...): No such file or directory
10-12-10 9:39:47 AM com.apple.launchd[1] (com.apple.metadata.mds[843]) Exited with exit code: 1
10-12-10 9:39:47 AM com.apple.launchd[1] (com.apple.metadata.mds) Throttling respawn: Will start in 10 seconds
10-12-10 9:39:57 AM com.apple.launchd[1] (com.apple.metadata.mds[844]) posix_spawn("/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Support/mds", ...): No such file or directory
10-12-10 9:39:57 AM com.apple.launchd[1] (com.apple.metadata.mds[844]) Exited with exit code: 1
10-12-10 9:39:57 AM com.apple.launchd[1] (com.apple.metadata.mds) Throttling respawn: Will start in 10 seconds
10-12-10 9:40:07 AM com.apple.launchd[1] (com.apple.metadata.mds[845]) posix_spawn("/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Support/mds", ...): No such file or directory

答案1

另一个选择是告诉 launchd 禁用 mds 守护进程:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

(这-w使得卸载操作永久生效 - 如果没有它,下次重新启动时 mds 将再次运行。)

答案2

尝试删除/System/Library/LaunchDaemons/com.apple.metadata.mds.plist

另外,你也可以已禁用 Spotlight

sudo mdutil -a -i off

相关内容