比如清空日志命令,任务执行日志
/www/server/cron/4def50caa5cae12e530c00c4ebd17ffc: line 4: pm2: command not found
面板无法执行,但是我ssh连接到root用户下成功
[root@izj6ci70a80i1erjzi4sc6z ~]# pm2 flush
[PM2] Flushing /root/.pm2/pm2.log[PM2] Flushing[PM2] /root/.pm2/logs/3000-out-0.log[PM2] /root/.pm2/logs/3000-error-0.log[PM2] Flushing[PM2] /root/.pm2/logs/3001-out-1.log[PM2] /root/.pm2/logs/3001-error-1.log[PM2] Flushing[PM2] /root/.pm2/logs/3004-out-2.log[PM2] /root/.pm2/logs/3004-error-2.log[PM2] Flushing[PM2] /root/.pm2/logs/3005-out-3.log[PM2] /root/.pm2/logs/3005-error-3.log[PM2] Logs flushed
按网上教程软连接后
sudo ln -s /www/server/nvm/versions/node/v8.9.3/bin/pm2 /usr/bin/pm2
新的报错
/usr/bin/env: node: No such file or directory
|
|