在重启apache时候会报一个错误:
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message
解决方法:
生成一个fqdn.conf文件
vim /etc/apache2/conf-available/fqdn.conf
写入ServerName localhost
然后告诉apache去使用
a2enconf fqdn
重启apache2,问题就解决了
service apache2 restart