![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
susu1083018911
想要遇见不一样的自己。
展开
-
An attempt was made to access a socket in a way forbidden by its access permissions
启动Nginx报错:10013:An attempt was made to access a socket in a way forbidden by its access permissions原因:端口被占用。查看nginx.conf都监听了哪些端口:修改端口即可原创 2022-03-28 13:01:54 · 10560 阅读 · 0 评论 -
nginx.exe -s reload 重启Nginx报错nginx: [error] OpenEvent(“Global\ngx_reload_1840“) failed
windows系统执行nginx.exe -s reload报错,解决办法:在任务管理器中结束已经运行着的nginx 来到你本地nginx的目录下,找到nginx.exe,双击nginx.exe重启 打开cmd命令行运行nginx.exe -t (-t参数代表不运行配置文件,只是测试配置文件)和nginx.exe -s reload执行参考图:...原创 2021-11-01 13:44:13 · 6274 阅读 · 0 评论 -
访问ubuntu的ftp的图片说是Forbidden 403
本地浏览器访问报403,访问图片时使用的http服务,图片服务器用的是nginx负责http,vsftpd负责ftp。所以访问不了图片可以考虑在nginx中寻找问题。#根据你的nginx寻找你的配置文件vi usr/local/nginx/conf/nginx.conf将#user nobody;改成root用户(我是使用的这种方式),或者你的ftp用户...原创 2021-10-28 16:42:44 · 1231 阅读 · 0 评论 -
centos7重启nginx报错解决办法nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed
[root@localhost sbin]# ./nginx -s reload在centos7中,执行nginx重启命令报错nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)解决:[root@localhost nginx]# /usr/lo...原创 2019-12-13 14:24:02 · 776 阅读 · 0 评论