Jump to content

7.設置Cron,自動續簽SSL


Jack

Recommended Posts

---------------------------
設置Cron,自動續簽SSL
---------------------------

開機啟用
systemctl enable cron


啟動cron
systemctl start cron

 

瀏覽crontab定時任務運行列表
crontab -l

 

原來安裝acme.sh時,已自動寫入到crontab

53 10 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null

 

開啟crontab
crontab -e

 

將出現訊息 Select an editor.  To change later, run 'select-editor'.
1. /bin/nano        <---- easiest
2. /usr/bin/vim.basic
3. /usr/bin/vim.tiny

我慣用vi,所以按 2

 

如果還需要修改,此時再度修改crontab


ESC儲存並離開
:wq

 

重開機
reboot

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...