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.

三、最后一招

相关推荐
ACP广源盛1392462567318 分钟前
IX8024@ACP# 搭配此芯 AI 服务器 + 爱芯元智产品完整方案
大数据·运维·服务器·人工智能·分布式·嵌入式硬件
探索云原生2 小时前
终于搞懂 Kueue:5 个核心对象一次讲透
linux·docker·ai·云原生·kubernetes
huainingning3 小时前
交换机通过ftp下载文件或者传输文件到ftp服务器
运维·服务器·网络
An_s3 小时前
机器学习python之识别图中物品信息
java·linux·开发语言
edwarddamon3 小时前
CentOS 7 国内安装 Docker CE(阿里云源)
运维
Championship.23.244 小时前
Linux 3.0 LVDS驱动开发详解
linux·运维·驱动开发·lvds
小池先生4 小时前
Windows服务器如何备份
运维·服务器
风向决定发型丶4 小时前
Shell中的特殊变量
linux·运维·bash
FII工业富联科技服务5 小时前
灯塔工厂用例详解:AR 远程巡检与智能运维闭环落地实践
运维·ar
mounter6255 小时前
走向长时运行:引入协程(Coroutines),打破 BPF 程序的“一堂到底”限制
linux·ebpf·kernel