certbot生成https证书失败

144 阅读1分钟

报错示例:

  • type: unauthorized
  • type: DNS
  • type: connection

image.png

步骤:

  1. 关闭nginx(在生成之前把它关闭)
  2. 关闭防火墙
  3. 如果使用pm2开启项目,请杀死pm2进程 如果还是不行,那么检查以下情况
  • 查看端口暂用情况netstat -ano
  • 查找端口:netstat -ano|findstr "80"
  • 查看端口对应进程tasklist | findstr "4560"
  • 结束进程taskkill /f /t /im svchost.exe
  • 重新生成certbot certonly --standalone