Linux系统Apache报错httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message

解决办法:

在配置文件中加一句ServerName  localhost:端口号  

# echo "ServerName localhost:8068" >> /etc/httpd/conf/httpd.conf

重启Apache即可解决。

posted @ 2023-07-19 21:17  DuanYongchun  阅读(74)  评论(0编辑  收藏  举报