linux关闭服务的命令(例如sendmail)


 
关闭sendmail服务
 
a.[root@sample ~]# /etc/rc.d/init.d/sendmail stop  ← 关闭sendmail服务
或者[root@sample ~]# service sendmail stop  ← 关闭sendmail服务
Shutting down sendmail: [ OK ]
Shutting down sm-client: [ OK ]

b.[root@sample ~]# chkconfig sendmail off  ← 关闭sendmail自启动

c.[root@sample ~]# chkconfig --list sendmail  ← 确认sendmail自启动已被关闭(都为off就OK)
sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off
 
 
 
作者 qinggzha

相关内容

    暂无相关文章