Windows 无法在本地计算机启动Apache2的解决方法 windows错误代码1

| | Comments (0)



我在windows启动apache2总管理服务内手动启动,在今天出现问题之前windows从来没有不能启动apache的情况,可是今天启动Apache服务时提示如下错误:

"Windows不能在本地计算机启动Apache2.有关更多信息,查阅系统事件日志。如果这是非Microsoft服务,请与服务厂商联系,并参考特定服务错误代码1. "

按照windows的提示,我去查系统日志,发现如下:
The Apache service named reported the following error:
>>> (OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 : make_sock: could not bind to address 0.0.0.0:80

这一条应该是不能建立80端口,在网上一查,本机80端口被占用了。以前从来不出现的情况,我想大概是前几天安装了skype引起的吧。关闭skype,启动apache,一切正常。

这个我刚解决,写出来和人分享,要先启动apache,再启动skype,可能也有其他软件会造成这样,主要是因为skype开机自启动造成,先用了80端口。

还有一种解决方法,来自网络:

以记事本的形式打开httpd.conf这个Apache的配置文件,找到原来的Listen 80行并改成Listen 8080然后保存,重新启动Apache2即可解决。本人刚刚解决,贴来共享。

友情提示:如果你电脑上的8080端口也被占用的话,可尝试其它闲置端口如:8181、8088等。

Leave a comment

Archives

Ads by google

Pages

Powered by Movable Type 4.24-en

About this Entry

This page contains a single entry by 单点日志 published on July 6, 2009 9:52 AM.

michael jackson逝世 was the previous entry in this blog.

网站地址栏徽标favicon.ico的制作与详解 及浏览器更新favicon.ico is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.