随笔分类 -  nginx

摘要:请求nginx报错502 Bad Gateway 查看后台error.log日志(nginx安装目录下logs下)可以看到: 2025/04/17 10:45:11 [error] 32238#0: *1869253 upstream sent too big header while readin 阅读全文
posted @ 2025-04-17 11:27 年迈的魔法师 阅读(325) 评论(0) 推荐(0)
摘要:使用nginx,请求体大于1M时遇到这个报错: 413 Request Entity Too Large 查看nginx后台的error.log日志,也能看到如下的报错: 2025/04/17 10:11:15 [error] 28892#0: *1869247 client intended to 阅读全文
posted @ 2025-04-17 10:44 年迈的魔法师 阅读(157) 评论(0) 推荐(0)
摘要:使用命令的前提:进入nginx下的sbin目录 通常默认目录为 /usr/local/nginx/sbin 1.查看版本 ./nginx -v 2.查看nginx当前状态 ps -ef | grep nginx 3.关闭nginx ./nginx -s stop 4.启动nginx ./nginx 阅读全文
posted @ 2021-10-28 20:53 年迈的魔法师 阅读(94) 评论(0) 推荐(0)
摘要:提示:我使用的Linux发行版为centOS8 1.进入nginx官网下载页面,下载Linux所需的压缩包文件。 http://nginx.org/en/download.html 2.在安装nginx之前需要安装pcre,gcc,openssl,zlib。因为nginx依赖这些环境。 yum in 阅读全文
posted @ 2021-10-28 20:50 年迈的魔法师 阅读(7330) 评论(0) 推荐(0)