will be added under /ect/logrotate.d/
/data/logs/nginx/*log { daily rotate 10 missingok notifempty compress sharedscripts postrotate /etc/init.d/nginx reopen_logs endscript }
Execute /etc/init.d/nginx reopen_logs and find that the execution fails.
Replace that command with
[ ! -f /usr/local/nginx/logs/nginx.pid ] || kill -USR1 `cat /usr/local/nginx/logs/nginx.pid`
where /usr/local/nginx/ logs/nginx.pid is the storage address of the pid configured in nginx.conf.
The problem is solved.