Home
GNU Emacs
編 輯 器
Emacs / XEmacs Quick Reference 速 成 表
Linux Command
企 鵝 指 令
Filesystem
檔 案 系 統
Restart
重 新 啟 動
Kernel Compilation
編 譯 系 統 核 心
網 路 小 品
企 鵝 巧 手
Linux Link
企 鵝 網 址
自 言 自 語

Restart 重 新 啟 動

Linux 提供很多不同的服務,例如 Web , FTP , Samba , Mail 等。當這些伺服器修改參數後,便需要手動「重新啟動」這些服務。不過,Linux 並像 Windows 一般要重新啟動整個系統,只需重新啟動相應的程式便可。


DNS Server
2001年8月10日

控制 DNS 伺服器的 script :

/etc/rc.d/init.d/named

named 總共有四個參數可供選擇:

startstoprestartstatus

Return 返回
Samba Server
2001年8月10日

控制 Samba 伺服器的 script :

/etc/rc.d/init.d/smb

smb 總共有四個參數可供選擇:

startstoprestartstatus

Return 返回
Mail Server
2000年5月30日

檢查 sendmail 伺服器 sendmail 的執行狀況:

/etc/rc.d/init.d/sendmail status

或者

ps ax | grep sendmail

啟動 sendmail 伺服器:

/etc/rc.d/init.d/sendmail start

停止 sendmail 伺服器:

/etc/rc.d/init.d/sendmail stop

/etc/rc.d/init.d/sendmail 也是一個 script ,用來協助我們啟動/停止 sendmail。這個 script 有四個參數可供選擇:

startstoprestartstatus

Return 返回
Apache Server
2000年5月30日

檢查 apache 伺服器 httpd 的執行狀況:

/etc/rc.d/init.d/httpd status

如果伺服器是執行中,會顯示類似下列信息:
httpd (pid 779 778 777 776 775 774 773 772 769) is running...

如果伺服器沒有執行,會顯示下列信息:
httpd is stopped

或者

ps ax | grep httpd

啟動 apache 伺服器:

/etc/rc.d/init.d/httpd start

停止 apache 伺服器:

/etc/rc.d/init.d/httpd stop

其實 /etc/rc.d/init.d/httpd 是一個 script ,用來協助我們啟動/停止 apache。這個 script 總共有五個參數可供選擇:

startstoprestartreloadstatus

Return 返回
本 頁 最 後 更 新 日 期 :2001年08月10日