linux closes sendmail service

method one:

a.

[root@sample ~]# /etc/rc.d/init.d/sendmail stop --Close the sendmail service

or

[root@sample ~]# service sendmail stop --Close the sendmail service

Shutting down sendmail: [ OK ]

Shutting down sm-client: [ OK ]

b.

[root@sample ~]# chkconfig sendmail off -- disable sendmail auto-start

c.

[root@sample ~]# chkconfig --list sendmail --Confirm that sendmail has been closed from startup (all are off, then OK)

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

If chkconfig --list sendmail shows the following:

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

It can be seen that in the startup mode 2/3/4/5 are all started by default, usually the production system is generally 3, and the service can be turned off according to the level

[root@sample ~]# chkconfig --level 2 sendmail off

[root@sample ~]# chkconfig --level 3 sendmail off

[root@sample ~]# chkconfig --level 4 sendmail off

[root@sample ~]# chkconfig --level 5 sendmail off

[root@sample ~]# chkconfig --list sendmail

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

Method Two:

[root@sample ~]# ntsysv

Just remove the * in the [ ] in front of sendmail.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327069809&siteId=291194637