启动apache遇到错误qualified domain name
2017-03-07 10:30:51   来源:   评论:0 点击:

启动apache遇到错误:httpd: Could not reliably determine the server s fully qualified domain name

[root@okserver httpd-2.2.4]# /usr/local/apache/bin/apachectl start
 
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
 
1)进入apache的安装目录:(视个人安装情况而不同) [root@okserver ~]# cd /usr/local/apache/conf
 
2)编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80
[root@okserver conf]# ls
extra  httpd.conf  magic  mime.types  original
[root@okserver conf]# vi httpd.conf
#ServerName
ServerName localhost:80
3)再重新启动apache 即可。
[root@okserver ~]# /usr/local/apache/bin/apachectl restart

相关热词搜索:qualified domain name

上一篇:w88中文mysql导入与导出
下一篇:最后一页

分享到: function postToWb(){ var _t = encodeURI(document.title); var _url = encodeURIComponent(document.location); var _appkey = encodeURI("cba3558104094dbaa4148d8caa436a0b"); var _pic = encodeURI(''); var _site = ''; var _u = 'https://v.t.qq.com/share/share.php?url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic+'&title='+_t; window.open( _u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' ); } document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); 收藏