首页 > 代码库 > https: could not reliably determine the server's fully qualified domain name, using localhost.localdomain.

https: could not reliably determine the server's fully qualified domain name, using localhost.localdomain.

1.  

技术分享

用记事本打开 

技术分享

 

将里面的 #ServerName localhost:80 注释去掉即可。

再执行

 技术分享

 

然后可以通过浏览器访问 http://localhost:80 ,如果页面显示 “It works!” ,即表示apache已安装并启动成功。

或者使用 curl http://localhost:80

参考:http://www.cnblogs.com/52linux/archive/2012/03/24/2415637.html

https: could not reliably determine the server's fully qualified domain name, using localhost.localdomain.