How to install cron

前端 未结 5 443
伪装坚强ぢ
伪装坚强ぢ 2020-12-14 01:21

I want to run PHP scripts automatically on a schedule. I learned about CRON recently. But I don\'t know how to install and use it.

I\'m using PHP, CSS, HTML, and ru

5条回答
  •  醉酒成梦
    2020-12-14 01:43

    Installing Crontab on Ubuntu

    sudo apt-get update
    

    We download the crontab file to the root

    wget https://pypi.python.org/packages/47/c2/d048cbe358acd693b3ee4b330f79d836fb33b716bfaf888f764ee60aee65/crontab-0.20.tar.gz
    

    Unzip the file crontab-0.20.tar.gz

    tar xvfz crontab-0.20.tar.gz
    

    Login to a folder crontab-0.20

    cd crontab-0.20*
    

    Installation order

    python setup.py install
    

    See also here:.. http://www.syriatalk.im/crontab.html

提交回复
热议问题