sudo /etc/init.d/apache2 restart时出现Could not reliably determine the server’s fully qualified domain

来源:互联网 发布:烤箱daogrs 知乎 编辑:程序博客网 时间:2024/05/29 14:01
 

apache2每次重启都会出现错误提示:
Could not reliably determine the server’s fully qualified domain name
在ubuntu的终端(Terminal)输入
sudo gedit /etc/apache2/apache2.conf

添加下面一行:

ServerName LocalHost

然后重新启动apache2

sudo /etc/init.d/apache2 restart

 

原创粉丝点击