2022-10-18
nginx学习之路

1、解决nginx报错:No mapping for the Unicode character exists in the target multi-byte code pa..

原因:nginx 路径中有中文

2、[emerg] 12080#3204: bind() to 0.0.0.0:10099 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)

原因:10099端口被占用了

1
切换另一个没被占用的端口便可以解决问题。

如果我们想要查看10099端口被什么应用占用?

1、按键盘win+r 打开运行界面,输入cmd,确定,打开管理员界
2、输入netstat -aon | findstr :10099 –查看对应的pid
3、输入 tasklist|findstr “对应的pid”

阅读更多

2022-10-13
nginx配置的网页刷新 404

在配置中添加:

try_files $uri $uri/ /index.html; —解决页面刷新404问题

实例:

阅读更多
浏览 |

© 2023 南疆 with help from Hexo and Twitter Bootstrap. Theme by Freemind.

container-narrow -->