1,下载httpcfg.exe
2,查看系统监听情况,打开cmd执行
httpcfg query iplisten
输出结果:
HttpQueryServiceConfiguration completed with 1166.6.
3,这表示没有监听,给iis绑定指定ip
(修改成127.0.0.1这样可以在前端配置个nginx,如果有多个主机IP的可以和nginx或apache共用80端口了)
httpcfg set iplisten -i 127.0.0.1
执行结果,表示设置正确
HttpQueryServiceConfiguration completed with 0
4,重启服务生效
net stop http /y
iisreset /restart
win2008及之后版本设置相对要简单些
netsh http show iplist
netsh http add iplisten 127.0.0.1
(修改成127.0.0.1这样可以在前端配置个nginx,如果有多个主机IP的可以和nginx或apache共用80端口了)
重启服务生效
net stop http /y
iisreset /restart
提示:现在腾讯云新人点击注册然后实名认证后,可以点此一键领取2860元代金券,然后点此进入腾讯云活动页面参加优惠力度非常大的腾讯云3年和5年时长服务器活动,一次性买多年,免得续费贵,这样就可以获得最大的优惠折扣,省钱。
版权声明:xxxxxxxxx;
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态