在Ubuntu上装完Apache后,每次启动apache服务器都会得到如下警告:
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
解决办法也很简单:
sudo echo "ServerName localhost" >> /etc/apache2/apache2.conf
或者
sudo vim /etc/apache2/apache2.conf
在里面最后加上一行:
ServerName localhost
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
解决办法也很简单:
sudo echo "ServerName localhost" >> /etc/apache2/apache2.conf
或者
sudo vim /etc/apache2/apache2.conf
在里面最后加上一行:
ServerName localhost