MacOS系统优化

本文主要针对macOS Mojave(10.14.4)版本的优化,原生系统中会有很多后台联网程序,大部分都有可能透漏隐私(也适用与用无线网卡上网的朋友,可以节省流量哦),所以我选择重命名这些程序,带来的后果是部分功能不能正常使用,会出现程序崩溃的情况,如果有朋友参考我的操作,请慎重,本文仅供参考。一切操作都需要进入recovery os使用csrutil disable关闭SIP后才能执行,配置好一定要使用csrutil enable重新开启SIP。

/usr/libexec/rapportd.old     (如不禁用,会一直开启)
/usr/sbin/mDNSResponderHelper.old
/Library/Preferences/SystemConfiguration/preferences.plist.old
/Library/SystemMigration/History/Migration-17A36F34-1359-403C-957F-3F1857221153/QuarantineRoot/usr/libexec/rapportd.old
/Library/SystemMigration/History/Migration-17A36F34-1359-403C-957F-3F1857221153/QuarantineRoot/usr/libexec/AirPlayXPCHelper.old
/System/Library/PrivateFrameworks/ApplePushService.framework/apsd.old
/System/Library/PrivateFrameworks/GeoServices.framework/Versions/A/XPCServices/com.apple.geod.xpc/Contents/MacOS/com.apple.geod.old
/System/Library/PrivateFrameworks/AuthKit.framework/Versions/A/Support/akd.old
/System/Library/PrivateFrameworks/CloudKitDaemon.framework/Support/cloudd.old  (云服务,如不禁用,会一直开启)
/System/Library/PrivateFrameworks/IMFoundation.framework/XPCServices/IMRemoteURLConnectionAgent.xpc/Contents/MacOS/IMRemoteURLConnectionAgent.old
/System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/commerced.old
/System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/commerce.old
/System/Library/PrivateFrameworks/SyncedDefaults.framework/Support/syncdefaultsd.old
/System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.Networking.xpc/Contents/MacOS/com.apple.WebKit.Networking.old(safari崩溃)
/System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent.old(safari崩溃)

 查看网络连接情况

while true; time=`date "+%Y-%m-%d %H:%M:%S"`;do  lsof -nP -iTCP;echo '---------------------'$time'--------------------------'; sleep 2; done

安装Brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

禁用启动项

 launchctl unload -w /System/Library/LaunchDaemons/com.apple.mobileassetd.plist 
 launchctl unload -w /System/Library/LaunchDaemons/com.apple.ifdreader.plist 
 launchctl unload -w /System/Library/LaunchDaemons/com.apple.analyticsd.plist 
 launchctl unload -w /System/Library/LaunchDaemons/com.apple.MobileFileIntegrity.plist 
 launchctl unload -w /System/Library/LaunchDaemons/com.apple.mobile.keybagd.plist 
launchctl unload -w /System/Library/LaunchDaemons/com.apple.icloud.findmydeviced.plist launchctl unload -w /System/Library/LaunchDaemons/com.apple.locationd.plist

禁用Mac系统的Spotlight的方法及恢复方法:

禁用方法:打开终端,在终端中输入如下内容:

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

恢复方法,打开终端,在终端中输入:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

然后重启就可以了 ====================

删除 spotlight 图标,在终端输入:

1、cd /System/Library/CoreServices/
2、sudo mv Search.bundle/ Search2.bundle/

然后在活动监视器退出 SystemUIServer 进程.

恢复 spotlight 图标到菜单栏的方法,在终端输入:

1、cd /System/Library/CoreServices/
2、sudo mv Search2.bundle/ Search.bundle/

然后在活动监视器退出 SystemUIServer 进程.

 

posted @ 2019-04-08 08:47  heycomputer  阅读(2295)  评论(0编辑  收藏  举报