AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1044760
Accepted
mahen3d
mahen3d
Asked: 2020-12-03 15:14:34 +0800 CST2020-12-03 15:14:34 +0800 CST 2020-12-03 15:14:34 +0800 CST

让我们加密自动更新安静模式错误

  • 772

我已经安装了让我们使用带有 DNS 验证模式的 Nginx 配置进行加密,按照文档中的说明自动更新,我添加了以下条目:

15 3 * * * /usr/bin/certbot renew --quiet

但是,这不起作用,所以我在命令行中运行它以查看发生了什么。我收到以下错误,我知道 Nginx 正在使用端口 80/443,当我手动更新它时我必须停止它,我想知道如何在 AUTO RENEW 模式下设置它,即在此之前添加停止 Nginx cronjob 并在它之后重新启动?但是在 cronjob 上执行此操作有点太危险了,就好像 Nginx 失败会造成很多停机时间一样。

[centos]# /usr/bin/certbot renew --quiet
Attempting to renew cert (example.com) from /etc/letsencrypt/renewal/example.com.conf produced an 
unexpected error: 
Problem binding to port 80: Could not bind to IPv4 or IPv6.. Skipping.

All renewal attempts failed. The following certs could not be renewed:
  /etc/letsencrypt/live/example.com/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)

任何想法?

ssl nginx lets-encrypt
  • 1 1 个回答
  • 1576 Views

1 个回答

  • Voted
  1. Best Answer
    Gerald Schneider
    2020-12-03T22:15:19+08:002020-12-03T22:15:19+08:00

    --nginx使用or参数运行 certbot --webroot,如文档所述,让它使用您正在运行的 nginx,而不是启动它的开放式网络服务器。

    certbot renew --quiet --nginx
    

    或者

    certbot renew --quiet --webroot --webroot-path /var/www/html
    

    不要忘记--deploy-hook在成功续订后也使用该参数重新加载您的 nginx。

    注意:如果您尚未安装 nginx 插件,则必须使用以下命令安装它。

    yum install python-certbot-nginx
    
    • 3

相关问题

  • 如何使用 Tomcat 5.5 更新 SSL 证书

  • 为 IIS6 自行生成 SSL 证书?

  • plesk 上的域和子域 ssl 访问

  • 如何设置 SSL 邮件服务器?

  • 如何通过 SVN 命令行接受 SSL 证书?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve