win10安装Apache24

http://httpd.apache.org/download.cgi

点击a number of third party vendors

 

进入http://httpd.apache.org/docs/current/platform/windows.html#down

点击ApacheHaus

进入https://www.apachehaus.com/cgi-bin/download.plx

 

下载https://www.apachehaus.com/cgi-bin/download.plx?dli=N1mT0FWaNVTTUZ1KWdFM6BlVOpkVFVFdOVlRq9UU

解压httpd-2.4.39-o102r-x64-vc14.zip,到C:\httpd\Apache24\

修改C:\httpd\Apache24\conf\httpd.conf,将listen端口80改为808

 

修改C:\httpd\Apache24\conf\extra\httpd-ssl.conf,C:\httpd\Apache24\conf\extra\httpd-ahssl.conf,将启动端口443改为442,

不然会报错:(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。  : AH00072: make_sock: could not bind to address [::]:443

 

安装./httpd.exe -k install -n "Apache24"

启动./httpd.exe -k start -n "Apache24"

关闭防火墙或者配置可通过8080

http://127.0.0.1:8080/就可以访问win10上的apache服务了

如何要关闭,卸载apache24

关闭./httpd.exe -k stop -n "Apache24"

卸载./httpd.exe -k uninstall -n "Apache24"

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值