Ps:现在用的是IMac 配置是2015 末款。机械硬盘~ ~!!
1.卸载和装载该防火墙的命令(这货会对每一个启动程序进行检查,联网权限控制,等等)
卸载:
launchctl unload /System/Library/LaunchAgents/com.apple.alf.useragent.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.alf.agent.plist
装载:
launchctl load /System/Library/LaunchDaemons/com.apple.alf.agent.plist
launchctl load /System/Library/LaunchAgents/com.apple.alf.useragent.plist
2.关闭spotlight的命令 (搜索的服务,此服务会严重 吃硬盘)
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.Spotlight.plist
(开启是:sudo launchctl load -w /System/Library/LaunchAgents/com.apple.Spotlight.plist)
3.关闭mds_stores的命令(这货是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)
4.关闭Dashboard的命令 (触摸屏的服务)
defaults write com.apple.dashboard mcx-disabled -boolean YES;killall Dock
5.关闭systemstats命令(用来收集系统使用数据和电量消耗情况,笔记本建议别关闭)
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.systemstatsd.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.systemstats.daily.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.systemstats.analysis.plist
开启:
sudo launchctl load -F /System/Library/LaunchDaemons/com.apple.systemstatsd.plist
sudo launchctl load -F /System/Library/LaunchDaemons/com.apple.systemstats.daily.plist
sudo launchctl load -F /System/Library/LaunchDaemons/com.apple.systemstats.analysis.plist
6.禁止.DS_Store文件的生成
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
开启:defaults write com.apple.desktopservices DSDontWriteNetworkStores false
7.系统偏好设置 iCloud 把所有的勾都取消掉
8.系统偏好设置 辅助功能 显示器 减少透明度
9.关闭 文件快速预览动画
defaults write com.apple.finder QLPanelAnimationDuration -int 0; killall Finder
开启:defaultsdeletecom.apple.finderQLPanelAnimationDuration;killallFinder
10.关闭 Dock 新开程序图标跳动动画
defaults write com.apple.dock launchanim -boolean false; killall Dock
开启:defaults write com.apple.dock launchanim -boolean true; killall Dock
11.关闭 Dock 自动隐藏动画
defaults write com.apple.dock autohide-time-modifier -float 0; killall Dock
开启:defaults write com.apple.dock autohide-time-modifier -float 0.7; killall Dock
12.关闭鼠标唤起延迟
defaults write com.apple.Dock autohide-delay -float 0; killall Dock
开启:defaults delete com.apple.Dock autohide-delay; killall Dock
13.关闭 Mission Control 动画
defaults write com.apple.dock expose-animation-duration -int 0; killall Dock
开启:defaults delete com.apple.dock expose-animation-duration; killall Dock
14.关闭apple无线基站
sudo launchctl unload /System/Library/LaunchAgents/com.apple.AirPortBaseStationAgent.plist
开启:launchctl load /System/Library/LaunchAgents/com.apple.AirPortBaseStationAgent.plist
15.对指定软件开启多线程处理
defaults write 软件包名 PBXNumberOfParallelBuildSubtasks 线程数
例如:
Xcode:defaults write com.apple.Xcode PBXNumberOfParallelBuildSubtasks 4
QQ:defaults write com.tencent.qq PBXNumberOfParallelBuildSubtasks 4
Finder:defaults write com.apple.finder PBXNumberOfParallelBuildSubtasks 4
Sublime text:defaults write com.sublimetext.3 PBXNumberOfParallelBuildSubtasks 4
Android Studio:defaults write com.google.android.studio PBXNumberOfParallelBuildSubtasks 4
16.关闭硬盘索引服务
sudo mdutil -a -i off
开启:sudo mdutil -a -i on