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

发布时间 2023-07-19 21:24:57作者: DuanYongchun

解决办法:

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

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

重启Apache即可解决。