Ubuntu下重启Apache出现ServerName提示

来源:互联网 发布:网络集成什么意思 编辑:程序博客网 时间:2024/06/18 14:18

Ubuntu环境下重启Apache出现如下提示:

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message


解决方法:

sudo vim /etc/apache2/sites-available/000-default.conf

打开default文件后,在顶端加入:

ServerName 127.0.0.1

重启apache即可。

1 0
原创粉丝点击