Kaie"s Blog 2.0 beta!
Back to "Top"

My Secret Notebook
 Show "Table of Contents"
Contact Me
Subscribe to my Posts feed
Subscribe to my Comments feed
My Flickr
Back to "Top"
My Secret Notebook
 Show "Table of Contents"
Contact Me
Subscribe to my Posts feed
Subscribe to my Comments feed
My Flickr

Saturday, March 06, 2010

[Mac/Snow Leopard] launchctl - Mac OS X load/unload daemons or agents command

  一般在Unix/Linux上,我們會透過 service 這指令來控制(啟用/停用)某些系統服務,在WIndows上也可以透過,"控制台->管理->服務及應用程式" 或 msconfig來達到同等效用。在我的雪豹被我養得愈來愈肥的情況下,該是停掉一些無三小路用的service的時候了。
  詳細指令操作,請找男人: man launchctl
.Disable / Unload oooxxx:
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.oooxxx.plist
.Enable / Load oooxxx:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.oooxxx.plist
.所有Daemons及Agents的擺放目錄如下:

man launchctl
~/Library/LaunchAgents Per-user agents provided by the user.
/Library/LaunchAgents Per-user agents provided by the administrator.
/Library/LaunchDaemons System wide daemons provided by the administrator.
/System/Library/LaunchAgents Mac OS X Per-user agents.
/System/Library/LaunchDaemons Mac OS X System wide daemons.

References:
How To FULLY Disable Spotlight in Leopard
(iPhone) 优化3.0服务,重启内存54M+电量及发热改善明显(大幅优化)

7 Comments:

Who: ㄚ晟 Class:
When: March 08, 2010 2:32 PM  

我對版形真的是!@#%#$%
可以請你幫我看一下嗎?
我的 較新的文章 首頁 較舊的文章 都不會在文章的下方
而是跑到文章的右邊去了
怎麼會這樣,我可以怎麼改呢?
http://pregnant-life.blogspot.com/

Who: Unknown Class:
When: March 08, 2010 8:28 PM  

To ㄚ晟:
咦,我看不到你所說的問題耶,我想你已經換別的做法了吧...

Who: ㄚ晟 Class:
When: March 09, 2010 9:10 AM  

嗯~~
不過這裡還有這個問題,一樣的版面,一樣的問題,請幫我,謝謝
http://it.notes.tw/

Who: Unknown Class:
When: March 09, 2010 9:19 AM  

To ㄚ晟 :
請將您的
#blog-pager {
text-align: center;
}
改成
#blog-pager {
text-align: center;
float:left;
}

Who: ㄚ晟 Class:
When: March 09, 2010 1:31 PM  

我已經照您說的修改了,
狀況還是一樣呢!!

Who: ㄚ晟 Class:
When: March 09, 2010 4:46 PM  

改過了,也是一樣呢!

Who: ㄚ晟 Class:
When: March 12, 2010 11:59 AM  

我修改好了,還是謝謝你^^