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)

你可能感兴趣的:(Spotlight索引功能关闭与打开)