解决LAMP错误

来源:互联网 发布:红旗linux证书 编辑:程序博客网 时间:2024/05/11 02:41

LAMP中出现的问题


[root@struggling html]# service httpd restart

Stopping httpd:                                           [  OK  ]
Starting httpd: httpd: Could not reliably determine the server's fully qualifiedomain name, using 192.168.1.110 for ServerName

                                                            [  OK  ]

当启动httpd后出现以上错误解决方法为

   

[root@struggling local]# vim  /etc/httpd/conf/httpd.conf

在文件末尾添加此句,重启即可:

 ServerName localhost:80
以上localhost是自己的主机名。

    

0 0