1)进入apache的安装目录:(视个人安装情况而不同) [root@server ~]# cd /usr/local/apache/conf
2)编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80
[root@server conf]# ls
extra httpd.conf magic mime.types original
[root@server conf]# vi httpd.conf
#ServerName www.example.com:80
ServerName localhost:80
3)再重新启动apache 即可。
[root@server ~]# /usr/local/apache/bin/apachectl restart
相关文章
- 11-11AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.2. Set the 'ServerName' directive globally to suppress this message
- 11-11解决httpd: Could not reliably determine the server's fully qualified domain name 问题
- 11-11Starting httpd:Could not reliably determine the server's fully qualified domain name
- 11-11apache状态显示报错AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdo...is message
- 11-11Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name
- 11-11httpd: Could not reliably determine the server's fully qualified domain name(转)
- 11-11httpd: Could not reliably determine the server's fully qualified domain name
- 11-11解决Apache启动错误:httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
- 11-11apache环境配置 | httpd Could not reliably determine the server's fully qualified domain name
- 11-11测试Apache服务器及httpd: Could not reliably determine the server's fully qualified domain name解决办法