linux下關閉sendmail
每次啟動作業系統出現等待sendmail是不是很苦惱啊,不用了就關了,免得看著揪心;

方法一:
1.service命令
檢視當前sendmail狀態,如下:
[root@dayong ~]# service sendmail status
sendmail (pid 3517) is running...

批註:這種方式關閉sendmail也是開機不啟動sendmail
方法三:
3.使用圖形介面設定setup
[root@dayong ~]# export LANG=C --首先設定環境變數
[root@dayong ~]# setup
選擇System services這一項:

下面這個介面是很熟悉的了,動一下手指頭就可以關掉你


方法一:
1.service命令
檢視當前sendmail狀態,如下:
[root@dayong ~]# service sendmail status
sendmail (pid 3517) is running...
[root@dayong ~]# service sendmail stop
Shutting down sm-client: [ OK ]
Shutting down sendmail: [ OK ]
[root@dayong ~]# service sendmail status
sendmail is stopped
Shutting down sm-client: [ OK ]
Shutting down sendmail: [ OK ]
[root@dayong ~]# service sendmail status
sendmail is stopped
批註:這種方法關閉sendmail服務,下次啟動時sendmail仍會啟動;
[root@dayong ~]# chkconfig --list sendmail --檢視各個啟動級別下sendmail的狀態
sendmail 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@dayong ~]# chkconfig --list sendmail --檢視各個啟動級別下sendmail的狀態
sendmail 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@dayong ~]# chkconfig --level 2345 sendmail off
[root@dayong ~]# chkconfig --list sendmail
sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off
2.使用圖形介面設定ntsysv
進入圖形介面找到sendmail服務,然後果斷關閉它;
[root@dayong ~]# chkconfig --list sendmail
sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off
批註:將2,3,4,5 level都關閉後,下次啟動系統sendmail服務將不會自動啟動。
方法二:2.使用圖形介面設定ntsysv

批註:這種方式關閉sendmail也是開機不啟動sendmail
方法三:
3.使用圖形介面設定setup
[root@dayong ~]# export LANG=C --首先設定環境變數
[root@dayong ~]# setup
選擇System services這一項:

下面這個介面是很熟悉的了,動一下手指頭就可以關掉你

批註:設定完成之後,下次開機是不啟動sendmail的,沒什麼可說的。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29634949/viewspace-1183133/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux 下redis關閉LinuxRedis
- LInux下檢視和關閉程式Linux
- Linux下的MongoDB安裝&啟動&關閉LinuxMongoDB
- Linux關閉watchdogLinux
- Linux基礎命令---sendmail傳送郵件LinuxAI
- Linux下命令列開啟關閉觸控板Linux命令列
- linux關閉防火牆命令 linux防火牆關閉和開啟命令Linux防火牆
- linux關閉防火牆命令是什麼 linux永久關閉防火牆命令分享Linux防火牆
- Linux伺服器---關閉selinuxLinux伺服器
- Linux 7關閉防火牆方法Linux防火牆
- nginx windows下 快速關閉NginxWindows
- Linux 臨時和永久關閉 SelinuxLinux
- 安裝和配置sendmailAI
- Linux系統開啟或關閉SELinux。Linux
- ubuntu下如何關閉某個埠?Ubuntu
- linux修改主機名、關閉防火牆、selinuxLinux防火牆
- centos下nginx啟動、重啟、關閉CentOSNginx
- WINDOWS 2000 & winxp 下關閉埠的方法Windows
- ubuntu下開啟/關閉防火牆 及埠 - 命令Ubuntu防火牆
- 什麼是seLinux?Linux關閉seLinux有什麼影響?Linux
- 關閉網頁彈出是否關閉的提示網頁
- 【集合論】關係閉包 ( 關係閉包求法 | 關係圖求閉包 | 關係矩陣求閉包 | 閉包運算與關係性質 | 閉包複合運算 )矩陣
- win10關閉防火牆提示怎麼關閉_win10關閉防火牆提示徹底關閉操作方法Win10防火牆
- Linux 系統關機後電源無法關閉的解決辦法Linux
- Linux下chkconfig命令詳解即新增服務以及兩種方式啟動關閉系統服務Linux
- 重啟和關閉 Linux 系統的 6 個終端命令Linux
- linux後臺執行和關閉、檢視後臺任務Linux
- linux版安全狗關閉 開啟 檢視 解除安裝命令Linux
- idea關閉coverageIdea
- 批量關閉程式
- 關閉sql tunningSQL
- 網頁關閉網頁
- webstorm關閉ESLintWebORMEsLint
- win10系統下關閉BitLocker加密功能的方法Win10加密
- win10系統下如何關閉遊戲模式通知Win10遊戲模式
- Win10系統下如何禁用關閉Administraotr帳戶Win10
- lnmp下如何關閉Mysql日誌保護磁碟空間LNMPMySql
- 使用screen讓關閉ssh連線時不關閉程式
- ubuntu 關閉防火牆命令 ubuntu怎樣關閉防火牆Ubuntu防火牆