解决iis默认占用全部ip的80端口问题
2010-05-17 10:45
1111 查看
到2003的CD下的 support/tools/Support.cab.解压出httpcfg.exe文件,COPY到windows/system32/目录下,
命令行
删除默认绑定的全部IP:
httpcfg delete iplisten -i 0.0.0.0
绑定到某IP:
httpcfg set iplisten -i 192.168.1.100
即命令使用IIS的只监听指定的IP及端口
查看绑定:
httpcfg query iplisten
删除绑定:
httpcfg delete iplisten -i 192.168.1.100
起服务
net stop http /y
net start http
iisreset
这时执行netstat -na 应该看到以下内容
TCP 192.168.1.100:80 0.0.0.0:0 LISTENING
如果还是
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
就是监听的全部IP,没对的.
国外英文帮助:
If you want to set IIS6 only listens on specific IP address, using httpcfg
to do this is the correct way.
Please run the following commands:
1. httpcfg delete iplisten -i 0.0.0.0
This removes IIS from listening on all available IPs 0.0.0.0
2. httpcfg delete iplisten -i <second ip address>
Removes IIS from listening on the second IP
3. 2. httpcfg set iplisten -i <first ip address>
Expliclitly configure IIS to be listening on the first IP
4. httpcfg query iplisten
Check the HTTP.sys IP listening list, you should only see the first IP in
it.
After this above, please run:
net stop http
net start http
iisreset
to restart HTTP service before restarting IIS. Restart IIS services will
not make the changes of HTTP.sys take effect. Or you may reboot the server.
Please check if it works this time. If problem still persists, I will
assist you on the troubleshooting.
命令行
删除默认绑定的全部IP:
httpcfg delete iplisten -i 0.0.0.0
绑定到某IP:
httpcfg set iplisten -i 192.168.1.100
即命令使用IIS的只监听指定的IP及端口
查看绑定:
httpcfg query iplisten
删除绑定:
httpcfg delete iplisten -i 192.168.1.100
起服务
net stop http /y
net start http
iisreset
这时执行netstat -na 应该看到以下内容
TCP 192.168.1.100:80 0.0.0.0:0 LISTENING
如果还是
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
就是监听的全部IP,没对的.
国外英文帮助:
If you want to set IIS6 only listens on specific IP address, using httpcfg
to do this is the correct way.
Please run the following commands:
1. httpcfg delete iplisten -i 0.0.0.0
This removes IIS from listening on all available IPs 0.0.0.0
2. httpcfg delete iplisten -i <second ip address>
Removes IIS from listening on the second IP
3. 2. httpcfg set iplisten -i <first ip address>
Expliclitly configure IIS to be listening on the first IP
4. httpcfg query iplisten
Check the HTTP.sys IP listening list, you should only see the first IP in
it.
After this above, please run:
net stop http
net start http
iisreset
to restart HTTP service before restarting IIS. Restart IIS services will
not make the changes of HTTP.sys take effect. Or you may reboot the server.
Please check if it works this time. If problem still persists, I will
assist you on the troubleshooting.
相关文章推荐
- 解决iis与Oracle Http Server占用80端口的问题
- 【完美解决】在WIN10中,解决80端口默认被占用的问题
- 解决发布网站iis 默认端口被占用问题
- 【windows7】解决IIS 80端口占用问题(亲测)
- Apache 解决80端口占用问题
- 关于Tomcat搭建服务器需要80端口问题的解决方案以及80端口被NT KERNEL & SYSTEM ,pid4占用解决方法
- IIS tomcat共用80端口解决一个IP多个域名:使用Nginx反向代理方式使两者兼容
- java中tomcat的80端口被占用问题解决
- 关于wamp启动是80端口被占用的问题详解(win7系统下WAMP 80端口被Microsoft-HTTPAPI/2.0占用的解决办法)
- windows下nginx的安装使用及解决80端口被占用nginx不能启动的问题
- 用Authbind 解决普通用户占用80端口问题
- 关于wamp启动是80端口被占用的问题详解(win7系统下WAMP 80端口被Microsoft-HTTPAPI/2.0占用的解决办法)
- 关于wamp启动是80端口被占用的问题详解(win7系统下WAMP 80端口被Microsoft-HTTPAPI/2.0占用的解决办法)
- 停电导致IIS问题,解决inetinfo的CPU占用很大
- Mac系统开发常见问题-80端口被占用的解决方案2-使用Nginx解决
- 解决iis内存占用过大的问题
- IIS和Oracle的APache的80端口冲突的问题的解决
- IIS,80端口被占用的解决方法
- 解决80端口被系统占用的问题
- 解决Tomcat 由于80端口被占用无法启动的问题