解决apache启动错误:Could not reliably determine the server's fully qualified domain name
[root@crmn keepalived]# service httpd start
正在启动 httpd:httpd: Could not reliably determine the server's fully qualified domain name, using 211.98.71.195 for ServerName
[确定]
解决:
[root@crmn keepalived]# vim /etc/httpd/conf/httpd.conf //加入一句 ServerName localhost:80
[root@crmn keepalived]# tail -3 /etc/httpd/conf/httpd.conf
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
ServerName localhost:80
[root@crmn keepalived]# service httpd stop
停止 httpd: [确定]
[root@crmn keepalived]# service httpd restart
停止 httpd: [确定]
正在启动 httpd: [确定]
浙公网安备 33010602011771号