Sendmail人們在互聯網上最常使用的就是電子郵件,但是做網站的技術人員對于Sendmail的使用還不是太了解,現在
長沙做網站技術部人員給大家介紹下
Sendmail使用指南及安裝測試刪除停止服務。
1.如何安裝Sendmail?
root@localhost# yum install sendmail -y
2.Sendmail如何開機啟動服務?
root@localhost# chkconfig --level 5 sendmail on
3.如何查看Sendmail服務是否啟動?
root@localhost# chkconfig --list | grep sendmail
sendmail 0:關閉 1:關閉 2:啟用 3:啟用 4:啟用 5:啟用 6:關閉
(以上表示如果系統執行Run Level 2、3、4、5時,就會自動啟動Sendmail服務器(sendmail),也可配合“–list”參數的使用,顯示每個Run Level是否自動執行Sendmail服務器。)
4.如何啟動/停止/重啟Sendmail服務?
root@localhost# /etc/rc.d/init.d/sendmail start|stop|restart
(start:啟動,stop:停止,restart:重啟)
5.查看Sendmail服務運行狀態?
root@localhost# /etc/rc.d/init.d/sendmail status
6.如何刪除Sendmail?
root@localhost# /etc/init.d/sendmail stop
root@localhost# chkconfig --levels 345 sendmail off
root@localhost# yum remove sendmail
7.Sendmail測試
root@localhost# telnet localhost 25
telnet命令提示:“-bash: telnet: command not found” 請執行:yum install telnet*