有没有办法让 nginx 在 Windows 2003 服务器上的端口 80 上运行?http.sys 服务似乎在端口 80 上运行,这是 Web 服务器在 Windows 上运行的新“首选方式”,但是 nginx 和 apache 还没有使用它。有没有简单的方法来阻止这种情况?
当我尝试绑定到 port80 时,我得到以下信息:
nginx: [emerg] bind() to 0.0.0.0:80 failed (10013: 尝试以访问权限禁止的方式访问套接字)
网络统计显示
Proto Local Address Foreign Address State PID
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4
Run Code Online (Sandbox Code Playgroud)
那个pid是
C:\nginx-1.2.5>tasklist /svc /FI "PID eq 4"
Image Name PID Services
========================= ======== ============================================
System 4 N/A
Run Code Online (Sandbox Code Playgroud)