663424 发表于 2017-2-10 17:28:19

httpd启动报错httpd: Could not reliably determine the server's fully qual...

                      httpd启动报错httpd: Could not reliably determine the server's fully qualified domain name
安装完apache-httpd后,启动时报错如下:


1
2
3
# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for ppt
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName





解决如下:
1.编辑httpd配置文件,

1
vim /etc/httpd/conf/httpd.conf




添加:ServerName localhost:80

2.重启httpd服务

1
2
3
# service httpd restart
Stopping httpd:
Starting httpd:






页: [1]
查看完整版本: httpd启动报错httpd: Could not reliably determine the server's fully qual...