美文网首页
Spotlight索引功能关闭与打开

Spotlight索引功能关闭与打开

作者: LiteDeveloper | 来源:发表于2022-09-02 21:32 被阅读0次

    在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索引功能关闭与打开

          本文链接:https://www.haomeiwen.com/subject/jecwwrtx.html