PHP Cron作业错误本地Xampp Ubuntu

时间:2017-05-12 12:39:34

标签: php ubuntu cron xampp

How to Set PHP Cron Job ?  
Steps Which I Followed.  
Step 1 : I run below Command.   
swapnil@UBUNTU1:~$ whereis php  
o/p :  
/usr/bin/php 
/usr/bin/php7.0 
/usr/lib/php 
/etc/php 
/usr/share/php7.0-opcache 
/usr/share/php7.0-readline 
/usr/share/php7.0-common 
/usr/share/php7.0-mbstring 
/usr/share/php7.0-zip 
/usr/share/php7.0-xml 
/usr/share/php 
/usr/share/php7.0-json 
/opt/lampp/bin/php 
/usr/share/man/man1/php.1.gz

Step 2: I Run Below Command  
swapnil@UBUNTU1:~$ */10 * * * * /usr/lampp/bin/php  
/opt/lampp/htdocs/cron_job/cron.php

错误:bash:* / 10:没有这样的文件或目录       在这里,我想在每10分钟后在本地设置我的cron作业

0 个答案:

没有答案