网站首页 > 技术教程 正文
## 以下错误产生于windows10 环境下,错误内容来自nginx错误日志error.log。
---
1.nginx: [emerg] unknown log format "main" in
-----------------------------------------------
```
log_formatmain'$remote_addr - $remote_user [$time_local] $request '
'"$status" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" "$gzip_ratio"';
```
正常启动:signal process started
2.2018/08/24 17:42:10 [error] 8040#16604: OpenEvent("Global\ngx_stop_19392") failed (2: The system cannot find the file specified)
------------------------------------------------------------------------
问题背景:执行自己编写的.bat脚本报出的问题。脚本代码如下:
```
d:
cd nginx
nginx -s stop
start nginx
```
原因:nginx未启动就执行nginx -s stop命令。
解决方法:可以不解决,不影响nginx的正常启动,或者修改脚本。
以下错误产生于MacBook环境下,错误内容来自浏览器、终端等。
3.403 Forbidden
如果项目路径包含在Users/me下,使用chmod授权/Users/me即可。
参考链接:https://serverfault.com/questions/218583/403-forbidden-error-on-mac-osx-apache-and-nginx
What are the permissions on /Users/me, /Use:s/me/Documents and /Users/me/Documents/workspace? All of the folders in the tree need to be readable by the nobody user.
**另外,可能是前端配置的请求url有问题,端口不正确。**
4. 500 Internal Server Error
改一下项目根路径
微信公众号,技术很有趣(ID:xiaoyaotan2016)
猜你喜欢
- 2024-10-11 老版本nginx存在安全漏洞,请升级至1.18稳定版本
- 2024-10-11 如何用NodeJS读取分析Nginx错误日志
- 2024-09-19 nginx 解决 readv() failed (104: Connection reset by peer)
- 2024-09-19 Godaddy购买SSL之后Nginx配置流程以及各种错误的解决
- 2024-09-19 nginx报错111: Connection refused
- 2024-09-19 2023年 Nginx 面试题总结(nginx配置和优化面试)
- 2024-09-19 Web中间件漏洞之Nginx篇(中间件漏洞总结)
- 2024-09-19 Nginx 备忘录 - 03. location 与 error_page
- 2024-09-19 高性能网关-Nginx-proxy_next_upstream自定义配置错误重试机制
- 2024-09-19 如何在 NGINX 中创建自定义 404 错误页面
你 发表评论:
欢迎- 最近发表
-
- Linux新手必看:几种方法帮你查看CPU核心数量
- linux基础命令之lscpu命令(linux中ls命令的用法)
- Linux lscpu 命令使用详解(linux常用ls命令)
- 如何查询 Linux 中 CPU 的数量?这几个命令要知道!
- 在linux上怎么查看cpu信息(linux如何查看cpu信息)
- 查看 CPU 的命令和磁盘 IO 的命令
- 如何在CentOS7上改变网卡名(centos怎么改网卡名字)
- 网工必备Linux网络管理命令(网工必备linux网络管理命令是什么)
- Linux 网络命令知多少(linux 网络 命令)
- Linux通过命令行连接wifi的方式(linux命令行连接无线网)
- 标签列表
-
- 下划线是什么 (87)
- 精美网站 (58)
- qq登录界面 (90)
- nginx 命令 (82)
- nginx .http (73)
- nginx lua (70)
- nginx 重定向 (68)
- Nginx超时 (65)
- nginx 监控 (57)
- odbc (59)
- rar密码破解工具 (62)
- annotation (71)
- 红黑树 (57)
- 智力题 (62)
- php空间申请 (61)
- 按键精灵 注册码 (69)
- 软件测试报告 (59)
- ntcreatefile (64)
- 闪动文字 (56)
- guid (66)
- abap (63)
- mpeg 2 (65)
- column (63)
- dreamweaver教程 (57)
- excel行列转换 (56)
本文暂时没有评论,来添加一个吧(●'◡'●)