我已经将Laravel调度程序添加为Plesk的定时任务:
cd /var/www/vhosts/websitename.com/httpdocs && /opt/plesk/php/7.3/bin/php artisan dailyCron:run >> /dev/null 2>& 1
但它给了我一个错误:
Task "cd /var/www/vhosts/websitename.com/httpdocs && /opt/plesk/php/7.3/bin/php artisan dailyCron:run >> /dev/null 2>& 1" completed with error in 0 seconds, output:
'cd /var/www/vhosts/websitename.com/httpdocs && /opt/plesk/php/7.3/bin/php artisan dailyCron:run >> /dev/null 2>& 1' is not recognized as an internal or external command, operable program or batch file.
at (RunTime::Execute::commandLine line 611)
at Plesk impersonation(PipeServer::ServerThread::impersonateRunAs line 728)
不知道为什么会出现这个错误。指挥部有什么问题吗?