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即可。