2011年1月30日 星期日

Ubuntu 移除軟體套件

  • apt-get remove 軟體名稱 - 刪除已安裝的軟體包(保留配置文件)
  • apt-get --purge remove 軟體名稱 - 刪除已安裝包(不保留配置文件)
  • 特別技巧:如果你想在刪除『foo』包同時安裝『bar』: apt-get --purge remove foo bar+
  • apt-get autoremove - 刪除為了滿足其他軟體的依賴而安裝的,但現在不再需要的軟體。 
-------
參考:http://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:AptGet/Howto/zh&variant=zh-tw#.E8.BD.AF.E4.BB.B6.E5.8C.85.E5.88.A0.E9.99.A4

2011年1月13日 星期四

Apache2 啟動

sudo apache2ctl -k stop  : 停止 Apache2
sudo apache2ctl -k start  : 啟動 Apache2
sudo apache2ctl -k restart  : 重新啟動 Apache2