Linux系统若何关闭sendmail服务_数据恢复神器怎么用
日期:2014-07-13 / 人气: / 来源:网络
这几日在整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前面[]中的*去掉即可。
WINDOWS7系统中的PHP环境使用sendmail插件和mail()发送邮件
导读:win7系统不再自带smtp设置,因此用php的mail函数就必须利用第三方的软件发送,此处介绍sendmail插件。(本章以下内容为转载)1.从http://glob.com.au/sendmail/下载sendmail.zip2.解压到C:下,例如C:P
MySQL数据库,
作者:管理员
推荐内容 Recommended
- 江苏飞浩信息科技期待您的加入07-20
- 江苏飞浩科技欢迎您07-19
相关内容 Related
- 江苏飞浩信息科技期待您的加入07-20
- 江苏飞浩科技欢迎您07-19