国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術(shù)文章
文章詳情頁

windows10 - Windows 10 安裝 nginx 出錯

瀏覽:118日期:2022-06-25 11:59:53

問題描述

logs bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)

windows10 - Windows 10 安裝 nginx 出錯

windows10 - Windows 10 安裝 nginx 出錯

windows10 - Windows 10 安裝 nginx 出錯

這里發(fā)現(xiàn)是因?yàn)?system占用80端口、system為系統(tǒng)進(jìn)程,又不能關(guān)閉,怎樣才能解決呢?我測試了一下 win7是好的。大家平常是怎樣解決的呢?

接上面,配置出現(xiàn)問題,test.conf copy 一份 nginx.conf,配置如下, 為什么請求 www.hht.com(這里我在host里配置過了),為什么還是 80端口,配置里面的端口是32000,

這又是什么原因呢?

test.conf

#user nobody;worker_processes 1;error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;pidlogs/nginx.pid;events { worker_connections 1024;}http { include mime.types; default_type application/octet-stream; #log_format main ’$remote_addr - $remote_user [$time_local] '$request' ’ # ’$status $body_bytes_sent '$http_referer' ’ # ’'$http_user_agent' '$http_x_forwarded_for'’; #access_log logs/access.log main; sendfileon; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; server {listen 32000;server_name www.hht.com;charset utf-8;location / { root deployed; index index.html index.htm;}error_page 404 /404.html;# redirect server error pages to the static page /50x.html#error_page 500 502 503 504 /50x.html;location = /50x.html { root html;} } server {listen 192.168.0.102:33000;server_name www.hhh.com;charset utf-8;access_log logs/host.access.log main;location / { root html; index index.html index.htm;}#error_page 404 /404.html;# redirect server error pages to the static page /50x.html#error_page 500 502 503 504 /50x.html;location = /50x.html { root html;} }}

windows10 - Windows 10 安裝 nginx 出錯windows10 - Windows 10 安裝 nginx 出錯windows10 - Windows 10 安裝 nginx 出錯

問題解答

回答1:

1.system那個占用80端口的應(yīng)用或許可以使用net stop servicename關(guān)閉2.給nginx使用另外一個端口先跑起來再來其他方面的問題(抓住重點(diǎn))

回答2:

Check IIS or IIS Express.

回答3:

一樓已經(jīng)說的很清楚了,不過強(qiáng)烈建議在linux上面玩,別問我怎么知道的,都是走過的坑啊。。。

回答4:

綁在其他端口

排查端口占用

使用Docker :)

標(biāo)簽: Windows系統(tǒng)
相關(guān)文章:
主站蜘蛛池模板: 子洲县| 伽师县| 寿宁县| 邯郸县| 千阳县| 桑日县| 筠连县| 五指山市| 台北县| 郎溪县| 丹东市| 湘潭市| 马边| 鱼台县| 本溪市| 洪洞县| 双柏县| 汉源县| 高邑县| 郓城县| 琼结县| 富顺县| 酒泉市| 河曲县| 湘西| 大兴区| 桐柏县| 子洲县| 岳西县| 贵溪市| 五家渠市| 镇安县| 塘沽区| 张家港市| 泸州市| 南阳市| 辽阳县| 乌兰浩特市| 化德县| 石河子市| 丹凤县|