【问题标题】:Auto Renewal For Let's Encrypt with MongoDBLet's Encrypt 的自动更新
【发布时间】:2016-05-01 19:52:07
【问题描述】:

我目前正在我的 MongoDB 安装中使用 let's encrypt 设置证书,现在我正在尝试设置自动续订,我找到了一个指南,说明如何在 nginx 中使用 cronjob 来实现这一点,这里是 crontab 文件:

30 2 * * 1 /opt/letsencrypt/letsencrypt-auto renew >> /var/log/le-renew.log
35 2 * * 1 /etc/init.d/nginx reload

我注意到nginx在续订后需要重新启动,这也适用于mongodb吗?

这个 crontab 是否适用于 mongodb?

30 2 * * 1 /opt/letsencrypt/letsencrypt-auto renew >> /var/log/le-renew.log
35 2 * * 1 /etc/init.d/mongodb restart

谢谢!

【问题讨论】:

    标签: android mongodb ssl parse-platform lets-encrypt


    【解决方案1】:

    如果这是当前控制 MongoDB 的方式,那么它将起作用。如果您使用的是 systemd、upstart 或其他主管,则必须弄清楚它的命令来重新启动 MongoDB。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-06-20
      • 1970-01-01
      • 2017-05-22
      • 2018-11-30
      • 2022-06-13
      • 2020-12-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多