mirror of
https://github.com/EtherDream/jsproxy
synced 2024-11-22 01:49:01 +00:00
日志 brotli 路径更新
This commit is contained in:
parent
c983c80a21
commit
d36b88ead1
@ -7,9 +7,7 @@ nginx 长时间运行会导致日志文件过大,该服务定期备份日志
|
||||
|
||||
## 依赖
|
||||
|
||||
用到了 `brotli` 压缩工具,执行 `setup-brotli.sh` 安装。
|
||||
|
||||
最终安装在 `/home/jsproxy/tools/brotli`。
|
||||
用到了 `brotli` 压缩工具,一键安装脚本已内置,手动安装执行 `setup-brotli.sh`,最终安装在 `/home/jsproxy/brotli`。
|
||||
|
||||
|
||||
## 启动
|
||||
|
@ -49,7 +49,7 @@ if (( $logsize > 100 * 1024 * 1024 )); then
|
||||
else
|
||||
# 日志不大,使用高强度压缩
|
||||
nice -n 19 \
|
||||
~/tools/brotli $logfile --rm
|
||||
~/brotli $logfile --rm
|
||||
fi
|
||||
|
||||
echo "done"
|
@ -5,9 +5,7 @@ git clone --depth 1 https://github.com/google/brotli.git
|
||||
cd brotli
|
||||
|
||||
make
|
||||
|
||||
mkdir -p ~/tools
|
||||
mv bin/brotli ~/tools
|
||||
mv bin/brotli ~
|
||||
|
||||
cd ..
|
||||
rm -rf brotli
|
Loading…
Reference in New Issue
Block a user