- 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