如何更改IIS防爆preSS端口网站 [英] How can i change IIS Express port for a site

查看:114
本文介绍了如何更改IIS防爆preSS端口网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想改变上我的网站上,同时从Visual Studio调试运行的端口号。我使用Visual Studio 2012,和我使用ASP.NET MVC 4为我的项目我想改变的端口。随机端口或固定的人将工作只是想改变的端口。


解决方案

  

要指定使用IIS防爆preSS Web应用程序项目的端口


  
  

      
  1. 在Solution Explorer中,右键单击该应用程序的名称,然后选择属性。
      单击Web选项卡。


  2.   
  3. 在服务器部分,在使用本地IIS Web服务器,在项目URL中更改端口号。


  4.   
  5. 要在项目URL框右侧,单击创建虚拟目录,然后单击确定。


  6.   
  7. 在文件菜单上,单击保存选定项。


  8.   
  9. 要验证更改,preSS CTRL + F5运行项目。
      新的端口号显示在浏览器的地址栏。


  10.   

如何:指定端口的开发服务器

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

  1. In Solution Explorer, right-click the name of the application and then select Properties. Click the Web tab.

  2. In the Servers section, under Use Local IIS Web server, in the Project URL box change the port number.

  3. To the right of the Project URL box, click Create Virtual Directory, and then click OK.

  4. In the File menu, click Save Selected Items.

  5. 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屋!

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