Ubuntu系统apache2网站的Let‘s Encrypt证书问题

一、经确认是SSL证书过期了,但是安装以后出现问题:Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove t o the CA that you control your domain. Please add a virtual host for port 80.

这个模式会让 Certbot 自己启动一个临时的、独立的 Web 服务器来占用80端口完成验证。这需要你暂时停止正在运行的主 Web 服务(比如 Nginx 或 Apache),因为80端口同一时间只能被一个程序占用

操作步骤:

bash 复制代码
sudo systemctl stop apache2
sudo certbot certonly --standalone -d www.xxxxx.com
sudo systemctl start apache2

二、自动续期出现问题:Failed to renew certificate www.bioseqdata.com with error: Could not bind TCP port 80 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.

三、最后一招

相关推荐
aHais_2 小时前
PWM子系统杂项笔记
linux
独自归家的兔2 小时前
Harbor 备份与迁移的方法
运维·harbor
量化分析2 小时前
腾讯云迁移上云功能
linux·云计算·腾讯云
aHais_2 小时前
REGMAP使用方法杂项
linux·单片机
何中应2 小时前
Jenkins如何导入/导出插件
运维·ci/cd·jenkins
XP62263 小时前
Linux安装RabbitMQ
linux·运维·rabbitmq
xlq223223 小时前
17。进程地址空间
linux·运维·服务器
疑犯3 小时前
Linux中符号命令详解
linux·运维·服务器
hweiyu003 小时前
Linux 命令:echo
linux·运维