Apache 创建letsencrypt证书失败

Apache 创建letsencrypt证书失败,apache,nginx,lets-encrypt,certbot,Apache,Nginx,Lets Encrypt,Certbot,我在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 Plugin

我在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。或者我可以吗?

如果您正在运行nginx服务器,请使用nginx插件(而不是apache):

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