wdssmq
V2EX  ›  问与答

IIS 导致 wsl2 内的 web 服务无法访问

  •  
  •   wdssmq · Dec 4, 2022 · 1408 views
    This topic created in 1329 days ago, the information mentioned may be changed or developed.

    wsl2 + Docker 写 PHP 啥的,直接 127.0.0.1[:port] 就能访问;

    为了写 ASP 又久违地装了 IIS ,然后发现 wsl2 内的服务打不开了;

    端口有错开,IIS 用的 80 ,然后本地编辑 host 绑定了域名,wsl2 内用的 8081 ;

    不卸载 IIS 的前提下有解么?

    也有试着把 IIS 的服务进程关掉,也不行。

    Supplement 1  ·  Dec 4, 2022
    找到原因了,挂进 Docker 内的一个文件不需要了还没删,结果权限有问题之类的……

    结果正好在折腾了 IIS 后显现了出来 - -
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2931 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 122ms · UTC 07:29 · PVG 15:29 · LAX 00:29 · JFK 03:29
    ♥ Do have faith in what you're doing.