2017-04-17 94 views
0

我正在使用debain jessie,certbot版本0.9.3-1〜bpo8 + 2。自从最近两天以来,我一直在为我的网站更新证书时发生此错误。续订letsencrypt证书失败

Could not bind TCP port 443 because it is already in use by another process on 
this system (such as a web server). Please stop the program in question and then 
try again. 
------------------------------------------------------------------------------- 
Attempting to renew cert from /etc/letsencrypt/renewal/www.testsite.com.conf produced an unexpected error: object of type 'NoneType' has no len(). Skipping. 

我该怎么办?我对Letsencrypt并不熟悉。任何人都请在这个灯上点灯?

回答

3

只需停止您的网络服务器并再次运行。如果使用的是使用nginx sudo service nginx stop

2

我还没有找到一种方式“零宕机”要做到这一点,但你可以自动停止/ nginx的用钩子开始,所以你可以处理的cron更新:

certbot renew --pre-hook "service nginx stop" --post-hook "service nginx start" 
相关问题