Home  >  Article  >  Backend Development  >  linux下使用crond 定时执行php脚本

linux下使用crond 定时执行php脚本

WBOY
WBOYOriginal
2016-06-23 13:40:20922browse

其实很简单 只要在前面加上文件的执行路径

36 17 * * * root -q /usr/bin/php /opt/backup/mail/ftp.php


这样子就可以了


http://www.php100.com/html/php/lei/2013/0905/5332.html

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn