zoukankan      html  css  js  c++  java
  • iisexpress局域网内调试网站

    1、找到IISExpress目录

    IISExpressconfigapplicationhost.config(注:如果使用vs2015则更改解决方案目录下的.vs文件夹中的该文件

    <site name="RMS.Web" id="18">
       <application path="/" applicationPool="Clr4IntegratedAppPool">
            <virtualDirectory path="/" physicalPath="C:workgroupWeb" />
       </application>
       <bindings>
            <binding protocol="http" bindingInformation="*:61730:localhost" />
       </bindings>
    </site>

    2、加上下面配置文件中黄色标记的代码

    <site name="RMS.Web" id="18">
      <application path="/" applicationPool="Clr4IntegratedAppPool">
           <virtualDirectory path="/" physicalPath="C:workgroupRMS.Web" />
      </application>
      <bindings>
           <binding protocol="http" bindingInformation="*:61730:localhost" />
           <binding protocol="http" bindingInformation="*:61730:*" />
      </bindings>
    </site>    

    3、用管理员打开VS,运行程序

    4、在局域网内的另一台机器上,打开浏览器,输入ip地址加端口号,从上面配置文件中可以看到程序端口号为:61730,现在你可以正常访问iisexpress中的网站了

  • 相关阅读:
    day 80 视图家族
    day 79 drf 多表关联操作
    day 78 drf 序列化
    day 77 drf中请求、渲染、解析、异常、响应模块的二次封装
    day 76 drf
    python小知识
    请求 渲染 解析 异常 响应模块
    子组件
    vue基础(2)
    vue基础
  • 原文地址:https://www.cnblogs.com/vitas/p/5408640.html
Copyright © 2011-2022 走看看