apache启动时出现错误的解决方法
错误:httpd: Could not reliably determine the server's fully qualified domain name解决方法:
进入apache的安装目录,我的是D:\Program Files\Apache Software Foundation\Apache2.2\conf
用记事本打开httpd.conf
将里面的#ServerName localhost:80注释去掉即可。
再执行httpd
然后可以通过浏览器访问http://localhost:80,如果页面显示“It works!”,即表示apache已安装并启动成功。
错误:通常每个套接字地址 (协议/网络地址/端口) 只允许使用一次: make_sock: could not bind to address 0.0.0.0:80
解决方法:是其他程序占用了80端口,导致 apache无法启动,关闭其他占用80端口的程序
页:
[1]