linux系统下apache安装中遇到的apache启动问题
2014-08-11 22:27:45   来源:   评论:0 点击:

linux系统下中遇到的apache启动错误提示如下:[root@localhost ~] sbin service httpd start Starting httpd: httpd: Could not reliably determine the server s fully qualified domain name, using localhost localdomain for ServerName

linux系统下apache安装中遇到的apache启动错误提示如下:

[root@localhost ~]# /sbin/service httpd start

Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName

[  OK  ]

解决方法

1)进入apache的安装目录:(视个人安装情况而不同) [root@localhost ~]# cd /etc/httpd/conf

2)编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80

[root@localhost conf]# ls

extra  httpd.conf  magic  mime.types  original

[root@localhost conf]# vi httpd.conf

#ServerName www.example.com:80

ServerName localhost:80

3)再重新启动apache 即可

[root@localhost ~]# service httpd restart

相关热词搜索:apache

上一篇:yum -y upgrade 和 yum -y update 区别
下一篇:Linux下修改Mysql的用户(root)的密码