04 2025 档案

摘要:请求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 年迈的魔法师 阅读(308) 评论(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 年迈的魔法师 阅读(146) 评论(0) 推荐(0)
摘要:添加定时任务 crontab -e 首次使用是需要选择编辑器。我个人只熟悉vim所以选择2 写入cron表达式和要执行的脚本 0 4 * * * /opt/cron/clean_log/clean_log.sh 上图为每天凌晨4点执行一个截断日志文件的脚本。 脚本内容如下: #!/bin/bash 阅读全文
posted @ 2025-04-09 21:37 年迈的魔法师 阅读(61) 评论(0) 推荐(0)