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.

三、最后一招

相关推荐
RisunJan7 分钟前
Linux命令-nohup(使进程忽略挂起(HUP)信号并在后台继续运行)
linux·运维·服务器
kebidaixu8 分钟前
板级设备树驱动修改实战:从PWM到CAN,释放GPIO的完整指南
linux
一码当前17 分钟前
【全志】 OKT153(sun8iw22) 启动链全流程详解
linux
STDD25 分钟前
VictoriaLogs:轻量级日志存储方案,Loki 的高效替代
运维·jenkins
键盘上的猫头鹰27 分钟前
【Linux 基础教程(一)】概述、安装与网络配置:VMware + CentOS + NAT + XShell 远程连接
linux·网络·centos
枳实-叶33 分钟前
【Linux驱动开发】第18天:I2C驱动深度解析
linux·运维·驱动开发
shandianchengzi36 分钟前
【记录】Ubuntu|Ubuntu 26.04 笔记本耗电过快,排查 省电过程
linux·运维·ubuntu
一叶星殇40 分钟前
日志成海,何以检索:Serilog 解锁 .NET 日志可查询新范式
运维·服务器
企服AI产品测评局41 分钟前
AI Agent实测:Agent Store现成应用如何重塑企业自动化?
运维·人工智能·ai·chatgpt·自动化
上海云盾安全满满43 分钟前
服务器不稳定,丢包有哪些原因?
运维·服务器