Linux系统如何关闭sendmail服务
思韵闪耀
2013-03-18
0

这几日在整vmware + openfiler + rhel5u3搭建Oracle 10g的RAC环境,可发现Linux系统启动的时候总是在sendmail服务这停止较长的时间,远远超过了我可以忍耐的时间….

Starting xinetd:                                                         [ OK   ]

Starting uuidd:                          [ OK    ]

Starting sendmail:   等待…

Starting sm-client:                                                       继续等…

想想自己做个实验也用不到这东西,关掉不就得了~

方法一:service命令

     [root@linux1 ~]# service sendmail status

sendmail (pid 3721 3711) is running...

[root@linux1 ~]# service sendmail stop

Shutting down sm-client: [OK]

Shutting down sendmail: [OK]

注意:service命令虽然已经关掉了sendmial服务,但是在下次重新启动OS的时候,还是会随OS启动而启动。

方法二:chkconfig命令

   [root@linux1 ~]# chkconfig --listsendmail

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

可以看到在启动模式2/3/4/5都是默认启动的,通常生产系统我一般是3。

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

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

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

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

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

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

        这样就可以在下次系统启动的时禁止sendmail服务启动了。

方法三:ntsysv

将sendmail前面[]中的*去掉即可。


【版权声明】
本站部分内容来源于互联网,本站不拥有所有权,不承担相关法律责任。如果发现本站有侵权的内容,欢迎发送邮件至masing@13sy.com 举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。

相关内容

Linux系统挂载未分配硬...
先查看未挂载之前的磁盘使用情况发现磁盘使用率已经达到了96%,迫切...
2025-02-22
Linux lsblk 命...
简介Linux 中的 lsblk 命令,全称叫做:list blo...
2025-02-22
linux内核5和6区别
Linux内核5.x和6.x版本之间有显著的区别,这些区别主要体现...
2024-04-29
docker-compos...
1.Compose介绍 DockerCompose是一个用来定义和...
2024-04-26
Linux中的防火墙(Ne...
NetfilterNetfilter是Linux 2.4内核引入的...
2024-03-15
firewall-cmd ...
firewalld的简要说明:firewalld 、firewal...
2024-03-15

热门资讯

Discus X论坛配置sen... Discuz x2.5 后台邮件设置方法其实和X2/x1.5基本一样,但很多同学都不注意一些细节,比...
redhat Linux系统配... 1 .检查Send Mail 的安装包 [root@sql root]# rpm -qa | gre...
使用Sendmail的反垃圾邮... 在最近几年,无处不在的垃圾邮件已使得所有邮件箱不堪重负,不断地需要工具以抗击这一无穷尽的垃圾邮件流。...