如何更改IIS防爆preSS端口网站 [英] How can i change IIS Express port for a site
问题描述
我想改变上我的网站上,同时从Visual Studio调试运行的端口号。我使用Visual Studio 2012,和我使用ASP.NET MVC 4为我的项目我想改变的端口。随机端口或固定的人将工作只是想改变的端口。
要指定使用IIS防爆preSS Web应用程序项目的端口
在Solution Explorer中,右键单击该应用程序的名称,然后选择属性。
单击Web选项卡。
在服务器部分,在使用本地IIS Web服务器,在项目URL中更改端口号。
要在项目URL框右侧,单击创建虚拟目录,然后单击确定。
在文件菜单上,单击保存选定项。
要验证更改,preSS CTRL + F5运行项目。
新的端口号显示在浏览器的地址栏。
块引用>I want to change the port number on which my website runs while debugging from Visual Studio. I am using Visual Studio 2012, and I am using ASP.NET MVC 4 for my projects I want to change the port. Random port or fixed anyone will work just want to change the port.
解决方案To specify a port for a Web application project that uses IIS Express
In Solution Explorer, right-click the name of the application and then select Properties. Click the Web tab.
In the Servers section, under Use Local IIS Web server, in the Project URL box change the port number.
To the right of the Project URL box, click Create Virtual Directory, and then click OK.
In the File menu, click Save Selected Items.
To verify the change, press CTRL+F5 to run the project. The new port number appears in the address bar of the browser.
From How to: Specify a Port for the Development Server
这篇关于如何更改IIS防爆preSS端口网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!