Ubuntu Apache2重启提示could not reliably determine the server’e fully…问题解决
Ubuntu 环境,当apache2重启提示:
* Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name,
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

解决的问题是:
sudo vim /etc/apache2/sites-available/default
打开default文件后,在default文件顶端加入:
ServerName 127.0.0.1
重启apache2 就不会提示上述错误了。
本文解决了在Ubuntu环境下重启Apache2时出现的无法可靠确定服务器全限定域名的问题。通过在default配置文件中添加ServerName指令,即可避免该错误提示。
4763

被折叠的 条评论
为什么被折叠?



