httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

/etc/hosts文件

原内容为:127.0.0.1       localhost.localdomain localhost

修改后:127.0.0.1      localhost localhost.localdomain

service httpd restart报错:

httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

再改回来重启apahce正常

 

你可能感兴趣的:(host)