- 1. 提示权限异常:FAILED to authorize user with PAM (Module is unknown)
查看异常日志:tail /var/log/cron
- 在crontab的权限白名单加上用户
cat /etc/cron.allow
root
www
- 重启crontab
/etc/init.d/crond restart
2. 提示资源不够:(CRON) ERROR (setreuid failed): Resource temporarily unavailable
查看异常日志:tail /var/log/cron
- 把红框位置的进程上限调大,默认是1024,调整为2048后重启crontab
cat /etc/security/limits.d/90-nproc.conf
- 重启crontab
/etc/init.d/crond restart