b站录播课程 https://www.bilibili.com/video/BV1JP87zzE3u?spm_id_from=333.788.player.switch&vd_source=f9ade39c52eeec0f5857a05a774c2433&p=53 系统集成软考资源 https://
查看linux系统内logrotate logrotate --version 1. 创建一个命名nginx的文件 第一行和第二行修改为你的nginx日志目录 create 0640 root root 其中 root 修改为自己实际运行的用户 倒数第四行中 nginx.pid 修改为你的nginx