关于wampsever无法启动问题

 

2、重启apache就会弹出错误提示框"the requested operation has failed" 然后打开服务,启动apache就提示我"windows 不能在本地启动apache。。。。"

解决方案:修改apache端口。apache的默认端口都是80端口,但是平时我们用的一些例如迅雷等这些软件的端口也是80端口,或者还有其他一些软件这时我们就可以通过修改apache的端口来解决这个端口冲突问题。

   打开apache安装目录下的httpd.conf文件
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

修改为

# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:8080
Listen 8080

这样问题就解决了。

还要注意的是在浏览器地址栏输入了localhost或者127.0.0.1之后还要带上我们的端口号:8080.这样就可以访问我们的网站了。

注:关于wampsever 的online和offline问题

online的真正意思是:其他人可以在内网访问到你的网站

offline的真正意思是:你的数据库账户和密码不对

2、如果你不想修改apache默认的80端口,可以看下面的链接,说的很详细了,我在这里就不重复了。

win7系统下:http://zhidao.baidu.com/question/95996897.html?qbl=relate_question_1

转载于:https://www.cnblogs.com/phpyr921125/p/3538207.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值