---
title: "CentOS5.5关闭sendmail服务【开机此处太慢】"
author: "scorpiomiracle"
date: "2011-02-11T15:44:00Z"
tags: []
slug: "centos5-5-sendmail"
draft: false
lastmod: "2012-03-18T17:44:11Z"
id: 1457014
url: "https://scorpiomiracle.iteye.com/blog/1457014"
---

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的形式