【问题标题】:creating letsencrypt certificate fails创建letsencrypt证书失败
【发布时间】:2018-02-19 01:11:10
【问题描述】:

我在 ubuntu 17.10 上。看起来成功安装了 certbot。 当我跑步时

sudo certbot --apache -d mywebsite.com -d www.mywebsite.com

我得到一个错误:

root@servername:~# sudo certbot --apache -d mywebsite.ca -d www.mywebsite.ca
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for mywebsite.ca
http-01 challenge for www.mywebsite.ca
Enabled Apache rewrite module
Error while running apache2ctl graceful.
httpd not running, trying to start
Action 'graceful' failed.
The Apache error log may have more information.

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs

有什么想法吗? 显然 apache 没有运行,但没关系,我使用的是 nginx,所以我不需要 apache。还是我?

【问题讨论】:

    标签: apache nginx lets-encrypt certbot


    【解决方案1】:

    如果你运行的是 nginx 服务器,请使用 nginx 插件(不是 apache):

    sudo certbot --nginx -d mywebsite.com -d www.mywebsite.com
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-18
      • 2016-04-03
      • 1970-01-01
      相关资源
      最近更新 更多