https://localhost/panel/index.php?m=user_games&p=check_expire
크롬을 사용하여 내 URL 을 실행 하면 코드가 실행되고 expier 때 서버가 종료됩니다.
하지만 crontab
이 명령을 사용하여 실행해야 할 때 :
* * * * * * wget -q --spider "https://localhost/panel/index.php?m=user_games&p=check_expire"
아무 일도 일어나지 않았는데 왜?
잘못된 crontab 명령을 정의했기 때문에 crontab이 실행되지 않는 것 같습니다. 6 개를 넣으세요 . *
5 개만 있으면 *
됩니다. 이렇게 해봐
* * * * * wget -q --spider "https://localhost/panel/index.php?m=user_games&p=check_expire"
crontab
실행 을 확인하려면 실행시 로그를 생성하십시오 wget
.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다