安装apache 后,网站无法访问

netstat -anpt |grep 80   查看 80 端口是否已监听

如果没有,重启 apache    service httpd restart

重启时如果提示:Starting httpd: httpd: apr_sockaddr_info_get() failed for iZ2zece0f04otxxt4g9mtvZ
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

进入apache配置文件:/etc/httpd/conf/httpd.conf(centos 6.*)  ,找到 #ServerName www.example.com:80 改为  ServerName localhost:80

发表评论

电子邮件地址不会被公开。