apache在启动时出现apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName错误,其解决方法如下:
在/etc/apache2/conf.d/目录下创建一个新文件fqdn,并写入内容“ServerName localhost”:
echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn
sudo /etc/init.d/apache2 restart
重启apache2解决问题。
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName错误的解决方法
最新推荐文章于 2023-04-10 17:28:15 发布
本文介绍了解决Apache启动时出现无法可靠确定服务器全限定域名的问题。通过在指定目录创建配置文件并设置ServerName为localhost,然后重启Apache服务即可解决此问题。
4768

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



