2团日志

基于logrotate的Openresty日志切割

1. logrotate配置 cd /etc/logrotate.d/ touch nginx 在/etc/logrotate.d/文件夹下创建nginx文件,输入以下内容: /usr/local/openresty/nginx/logs/*.log { rotate 4 daily miss

2团 2团 Published on 2023-04-26