您的位置:首页 > 大数据 > 人工智能

解决sendmail服务启动慢的方法

2013-06-25 15:52 302 查看
解决sendmail服务启动慢的方法1、检查你的/etc/sysconfig/network配置文件
[root@LNMP_SERVER ~]# grep "HOSTNAME" /etc/sysconfig/networkHOSTNAME=LNMP_SERVER
这个HOSTNAME的设置要和你当前登录进来的主机名一样
2、检查你的/etc/hosts文件设置
[root@LNMP_SERVER ~]# grep LNMP_SERVER /etc/hosts 127.0.0.1 LNMP_SERVER localhost .localdomain
这里要写上与/etc/sysconfig/network 里面的主机名一样,另外最后面一定要写上.localdomain
/etc/hosts文件说明第一列:网络IP地址;
第二列:主机名或域名;
第三列:主机名别名;
如果按照上面设置了,一定没有问题,眼见为实,是不是很快呀~~~[root@LNMP_SERVER ~]# cat /etc/sysconfig/network NETWORKING=yesNETWORKING_IPV6=noHOSTNAME=LNMP_SERVER[root@LNMP_SERVER ~]# cat /etc/hosts # Do not remove the following line, or various programs# that require network functionality will fail.
127.0.0.1 LNMP_SERVER localhost .localdomain::1 localhost6.localdomain6 localhost6[root@LNMP_SERVER ~]# /etc/init.d/sendmail restartShutting down sm-client: [ OK ]Shutting down sendmail: [ OK ]Starting sendmail: [ OK ]Starting sm-client: [ OK ]

本文出自 “张杰的技术博客” 博客,请务必保留此出处http://zhangjie.blog.51cto.com/539058/1229251
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: