Single

解决:waiting apache2: Could not reliably determine the server’s fully qualified domain name, using 0.0.0.151 for ServerName

使用Apache作为服务器添加完成网站相关配置后,重启Apache服务时出现如下错误:

* Restarting web server apache2 
apache2: Could not reliably determine the server's fully qualified domain name, using 0.0.0.151 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 0.0.0.151 for ServerName

原因分析:

即0.0.0.151不能作为服务器名称

解决方法:

打开/etc/apache2/apache2.conf文件修改ServerName值为localhost:80,或者如果不存在ServerName一项,则添加

ServerName localhost:80

暂无评论

发表评论