Leopard上的spotlight纯属鸡肋,很少使用,而且还影响系统速度,不如直接禁用:
[b]1. 停止spotlight程序[/b]
[b]2. 停止background server[/b]
[b]3. 删除index文件[/b]
[b]4. 恢复方法, 以后想恢复了再load回来[/b]
[b]1. 停止spotlight程序[/b]
# 停止当前用户
launchctl unload /System/Library/LaunchAgents/com.apple.Spotlight.plist
# 停止所有用户
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.Spotlight.plist
[b]2. 停止background server[/b]
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
[b]3. 删除index文件[/b]
sudo find / -iname '.Spotlight-V100' -type d -maxdepth 3 -print0
| xargs -0 -t -n1 sudo rm -rf
[b]4. 恢复方法, 以后想恢复了再load回来[/b]
sudo launchctl load -w /System/Library/LaunchAgents/com.apple.Spotlight.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist