今天在一台server上发现使用cut_log.sh脚本mv access.log access_year_month_day.log后,kill -USR1试图触发nginx重新生成新的access.log失败。

手工执行kill -USR1,返回:kill -USR1 不允许的操作。ls -l nginx为:-rwsrwxr-x root root。而正常server上的状态是-r-sr-xr-x root root。chmod修改之后,就正常了。

等有空的时候,仔细复习一下kill的权限。

Leave a Reply