Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

没有crontab 会自动更新吗? #2435

Closed
warriorBrian opened this issue Aug 10, 2019 · 4 comments
Closed

没有crontab 会自动更新吗? #2435

warriorBrian opened this issue Aug 10, 2019 · 4 comments

Comments

@warriorBrian
Copy link

我按wiki成功颁发了证书,但是我输入crontab -l,返回 no crontab for root
我想问下,他会自动续订么,wiki上说60天会自动续订,但是我没看到crontab任务。
image

@Neilpang
Copy link
Member

  1. 首先, 标题可以改一下, 开宗明义: 没有crontab 会自动更新吗? 没有人愿意看到类似: 关于xxxx 的疑问. 之类的标题. 点进来看需要时间.
  2. 其次: 请详细描述你的问题. 比如, 你根据哪个wiki 页面做的, 是在主机还是在docker 里面. 笼统的说, 别人没时间来猜. 你不会得到任何有用的帮助.
  3. 第三, 不要发私人邮件来问问题. 不提供免费的邮件支持. 你不会得到任何回复.

@warriorBrian
Copy link
Author

@Neilpang

  1. 我根据这个: wiki 来进行操作。

  2. 我执行了 acme.sh -d demo.aaa.com --nginx

  3. 然后执行了 acme.sh --installcert -d <domain>.com \ --key-file /etc/nginx/ssl/<domain>.key \ --fullchain-file /etc/nginx/ssl/fullchain.cer \ --reloadcmd "service nginx force-reload"

  4. 最后执行了 acme.sh --upgrade --auto-grade

  5. 我发现了crontab -l没有任何任务。环境Centos7,阿里云ECS服务器。服务器内部执行,没有任何虚拟容器承载。

然后,按照你口中的开宗明义:没有crontab 会自动更新吗?

@warriorBrian warriorBrian changed the title 颁发证书自动更新疑问 没有crontab 会自动更新吗? Aug 13, 2019
@Neilpang
Copy link
Member

如果你的 crontab -l 中确实没有的话, 可以执行:

acme.sh  --install-cronjob

它会帮你安装 cronjob.

如果有了, 就可以了.

另外, 你还可以设置一个通知功能, 这样你每天晚上都能收到通知:
https://github.com/Neilpang/acme.sh/wiki/notify

@warriorBrian
Copy link
Author

@Neilpang 非常感谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants