Spotlight索引功能关闭与打开

在Mac 电脑中, md 相关的几个进程 CPU占用很高。
这几个进程都是为了处理Spotlight索引,可以进行关闭

关闭

sudo mdutil -a -i off

打开

sudo mdutil -a -I on

如果不起作用可以尝试下面方法:

关闭spotlight的命令:
launchctl unload -w /System/Library/LaunchAgents/com.apple.Spotlight.plist
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.Spotlight.Root.plist

开启:
launchctl load -w /System/Library/LaunchAgents/com.apple.Spotlight.plist
sudo launchctl load -w /System/Library/LaunchAgents/com.apple.Spotlight.Root.plist

关闭mds_stores的命令:

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

开启:
launchctl unload -w /System/Library/LaunchAgents/com.apple.mds.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist)

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容