centos下使用crontab执行php定时任务

    xiaoxiao2025-01-06  10

    1. 编辑/var/spool/cron下的root文件

    2. 添加一行, 每一分钟请求一次http://localhost/1.php

        */1  * * * * /usr/bin/curl http://localhost/1.php 3. 重启crond服务

        service crond restart

    转载请注明原文地址: https://ju.6miu.com/read-1295206.html
    最新回复(0)