Sendmail人們在互聯(lián)網(wǎng)上最常使用的就是電子郵件,但是做網(wǎng)站的技術(shù)人員對于Sendmail的使用還不是太了解,現(xiàn)在
長沙做網(wǎng)站技術(shù)部人員給大家介紹下
Sendmail使用指南及安裝測試刪除停止服務(wù)。
1.如何安裝Sendmail?
root@localhost# yum install sendmail -y
2.Sendmail如何開機(jī)啟動服務(wù)?
root@localhost# chkconfig --level 5 sendmail on
3.如何查看Sendmail服務(wù)是否啟動?
root@localhost# chkconfig --list | grep sendmail
sendmail 0:關(guān)閉 1:關(guān)閉 2:啟用 3:啟用 4:啟用 5:啟用 6:關(guān)閉
(以上表示如果系統(tǒng)執(zhí)行Run Level 2、3、4、5時,就會自動啟動Sendmail服務(wù)器(sendmail),也可配合“–list”參數(shù)的使用,顯示每個Run Level是否自動執(zhí)行Sendmail服務(wù)器。)
4.如何啟動/停止/重啟Sendmail服務(wù)?
root@localhost# /etc/rc.d/init.d/sendmail start|stop|restart
(start:啟動,stop:停止,restart:重啟)
5.查看Sendmail服務(wù)運行狀態(tài)?
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” 請執(zhí)行:yum install telnet*