在同一端口上运行2个Web服务 [英] Running 2 webservices on same port

查看:355
本文介绍了在同一端口上运行2个Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



试图在同一个端口上获得2个网络服务。这可能吗?他们不必同时运行。只想要两个在同一个端口上而不是我不需要更改代码evrytime。任何人都知道是否可能,因为IIS现在正在抱怨其他Web服务使用的端口。

Dear Friends,

Trying to get 2 webservices on same port. Is this possible? they don't have to run on the same time. Just want both on same port than I don't have to change the code evrytime. Anyone knows if it is possible because IIS is now complaining about port in use for another webservice.

推荐答案

您可以在同一端口上运行任意数量的服务。



如果在同一端口上运行两个Web服务器(例如IIS和Visual Studio express或IIS和tomcat),则只会出现端口错误。

因此,如果您在IIS上运行一项服务,然后尝试在同一端口上运行托管在另一台服务器上的另一项服务,您将收到此错误。
You can run as many services as you want on the same port.

You will only get the port error if you have two web servers running on the same port (say IIS and Visual Studio express or IIS and tomcat).
So if you run one service on IIS and then try to run another service hosted on another server on the same port, you will get this error.


这篇关于在同一端口上运行2个Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆