Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name
[root@master Packages]# service httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.98.156 for ServerName
(2)No such file or directory: httpd: could not open error log file /etc/httpd/logs/error_log.
Unable to open logs
[FAILED]
[root@master Packages]#
启动apache遇到错误:httpd: Could not reliably determine the server’s fully qualified domain name
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
1) 进入apache的安装目录:(视个人安装情况而不同)
2) /etc/httpd/conf/httpd.conf
3) 编辑httpd.conf文件,搜索”#ServerName”,添加ServerName localhost:80
4) #ServerName
5) ServerName localhost:80
6) 再重新启动apache 即可service httpd restart
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24179204/viewspace-2126688/ ,如需转载,请注明出处,否则将追究法律责任。