Ps:現(xiàn)在用的是IMac? 配置是2015 末款。機(jī)械硬盤~ ~!腾务!
1.卸載和裝載該防火墻的命令(這貨會對每一個(gè)啟動程序進(jìn)行檢查,聯(lián)網(wǎng)權(quán)限控制削饵,等等)
卸載:
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.關(guān)閉spotlight的命令 (搜索的服務(wù)岩瘦,此服務(wù)會嚴(yán)重 吃硬盤)
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.Spotlight.plist
(開啟是:sudo launchctl load -w /System/Library/LaunchAgents/com.apple.Spotlight.plist)
3.關(guān)閉mds_stores的命令(這貨是spotlight的一個(gè)服務(wù))
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.關(guān)閉Dashboard的命令 (觸摸屏的服務(wù))
defaults write com.apple.dashboard mcx-disabled -boolean YES;killall Dock
5.關(guān)閉systemstats命令(用來收集系統(tǒng)使用數(shù)據(jù)和電量消耗情況,筆記本建議別關(guān)閉)
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.系統(tǒng)偏好設(shè)置 iCloud 把所有的勾都取消掉
8.系統(tǒng)偏好設(shè)置 輔助功能 顯示器 減少透明度
9.關(guān)閉 文件快速預(yù)覽動畫
defaults write com.apple.finder QLPanelAnimationDuration -int 0; killall Finder
開啟:defaultsdeletecom.apple.finderQLPanelAnimationDuration;killallFinder
10.關(guān)閉 Dock 新開程序圖標(biāo)跳動動畫
defaults write com.apple.dock launchanim -boolean false; killall Dock
開啟:defaults write com.apple.dock launchanim -boolean true; killall Dock
11.關(guān)閉 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.關(guān)閉鼠標(biāo)喚起延遲
defaults write com.apple.Dock autohide-delay -float 0; killall Dock
開啟:defaults delete com.apple.Dock autohide-delay; killall Dock
13.關(guān)閉 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.關(guān)閉apple無線基站
sudo launchctl unload /System/Library/LaunchAgents/com.apple.AirPortBaseStationAgent.plist
開啟:launchctl load /System/Library/LaunchAgents/com.apple.AirPortBaseStationAgent.plist
15.對指定軟件開啟多線程處理
defaults write 軟件包名 PBXNumberOfParallelBuildSubtasks 線程數(shù)
例如:
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.關(guān)閉硬盤索引服務(wù)
sudo mdutil -a -i off
開啟:sudo mdutil -a -i on