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

来源:岁月联盟 编辑:exp 时间:2012-03-23
 关闭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