吴伟贤のBlog

Feed Rss

CentOS 关闭sendmail服务

11.22.2012, linux, by .

1,关闭sendmail服务

/etc/rc.d/init.d/sendmail stop

Shutting down sendmail:         [ OK ]
Shutting down sm-client:         [ OK ]

2,关闭sendmail自启动

[root@lsp ~]# chkconfig sendmail off

3,确认sendmail自启动已被关闭(都为off就OK)

[root@lsp ~]# chkconfig –list sendmail

sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off

————–

chkconfig –list 可以用来查看所有的服务

如果提示chkconfig命令找不到,可使用/sbin/chkconfig的形式

评论已关闭。