Debian的apache启动时出现警报的解决办法
debian自带的apache安装后,无论启动还是关闭都会出现这样的提示:
Starting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
这是由于apache不知道ServerName是什么,需要手动定义
修改apache配置文件:sudo gedit /etc/apache2/apache2.conf,在文件最后设置:ServerName 127.0.0.1
重启apache一切正常