threeperson博客园 IT技术、互联网技术、Java技术分享

logrotate 不起作用

近日做服务迁移发现nginx日志未做分割,导致日志文件很大。于是查了一下日志分割应用配置。 阿里云ecs默认自带logrotate,logrotate配置目录/etc/logrotate.d。看了一下,nginx对应的logroate 配置是存在的。检查了一下配置,发现nginx检测的目录是/var

threeperson threeperson 发布于 2018-07-05