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

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

WBOY
Release: 2016-06-23 13:40:20
Original
954 people have browsed it

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

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


这样子就可以了


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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template