CentOS VPS에 crontab이 설정되어 있는데 실행되고 있지 않습니다...
크론 파일은 다음과 같습니다.
* * * * * php -f /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/1min.php
* * * * * php -f /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/1minemail.php
*/15 * * * * php -f /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/15min.php
*/30 * * * * php -f /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/30min.php
0 */1 * * * php -f /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/hourly.php
0 0 */1 * * php -f /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/daily.php
0 0 */7 * * php -f /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/weekly.php
0 0 */30 * * php -f /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/bimonthly.php
0 0 * * * php -f /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/clearreport.php
나는 또한 그것의 또 다른 변형을 시도했습니다:
* * * * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/1min.php
* * * * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/1minemail.php
*/15 * * * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/15min.php
*/30 * * * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/30min.php
0 */1 * * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/hourly.php
0 0 */1 * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/daily.php
0 0 */7 * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/weekly.php
0 0 */30 * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/bimonthly.php
0 0 * * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/clearreport.php
* * * * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/1min.php
* * * * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/1minemail.php
*/15 * * * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/15min.php
*/30 * * * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/30min.php
0 */1 * * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/hourly.php
0 0 */1 * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/daily.php
0 0 */7 * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/weekly.php
0 0 */30 * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/bimonthly.php
0 0 * * * php -q /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/clearreport.php
웹 브라우저에서는 파일을 실행할 수 있지만 crontab에서는 실행할 수 없습니다.
답변1
실행 중인지 확인하세요 crond
. 또한 부팅 시 제대로 시작되는지 확인하고 테스트하세요.