sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.Spotlight.plist
(开启是:sudo launchctl load -w /System/Library/LaunchAgents/com.apple.Spotlight.plist)
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
(开启是:sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist)
关闭sudo mdutil -a -i off
打开sudo mdutil -a -i on