日期:2014-05-16  浏览次数:20901 次

apache 启动 无法访问网页问题
apache 正常启动  而无法访问网页
错误日志:
Could not reliably determine the server’s fully qualified domain name, using 192.168. 1. 119 for ServerName

解决方案:
最有效就是:
1.  DNS没配置好. 在httpd.conf , 在最前加入 ServerName 127.0.0.1:2012
----------------------------------2.在windows命令行窗口下执行:
C:\>netstat -aon|findstr “80″
TCP     127.0.0.1:80         0.0.0.0:0               LISTENING       2448
看到了吗,端口被进程号为2448的进程占用,继续执行下面命令:
C:\>tasklist|findstr “2448″
thread.exe                     2016 Console                 0     16,064 K
很清楚吧,thread占用了你的端口
如果第二步查不到,那就开任务管理器,看哪个进程是2448,结束该进程
3.换掉默认的端口 80  我的改成 2012