重启服务报错;
- sudo /etc/init.d/apache2 restart
- [sudo] password for wangchengyi:
- * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
- ... waiting .apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
- [ OK ]
在 httpd.conf 中加入
- ServerName localhost
就好了
- sudo /etc/init.d/apache2 restart
- * Restarting web server apache2 ... waiting .
。