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.

三、最后一招

相关推荐
浅时光_c5 小时前
3 shell脚本编程
linux·开发语言·bash
Lucis__6 小时前
一文读懂TCP通信机制:基于相关API构建可靠性连接
linux·网络·tcp/ip
_深海凉_6 小时前
LeetCode热题100-有效的括号
linux·算法·leetcode
鹿鸣天涯7 小时前
Xftp传输文件时,解决“无法显示远程文件夹”方法
运维·服务器·计算机
RNEA ESIO8 小时前
PHP进阶-在Ubuntu上搭建LAMP环境教程
开发语言·ubuntu·php
unDl IONA8 小时前
服务器部署,用 nginx 部署后页面刷新 404 问题,宝塔面板修改(修改 nginx.conf 配置文件)
运维·服务器·nginx
零号全栈寒江独钓8 小时前
基于c/c++实现linux/windows跨平台获取ntp网络时间戳
linux·c语言·c++·windows
Web极客码8 小时前
WordPress管理员角色详解及注意事项
运维·服务器·wordpress
左手厨刀右手茼蒿8 小时前
Linux 内核中的进程管理:从创建到终止
linux·嵌入式·系统内核
geinvse_seg8 小时前
中小团队如何低成本搭建项目管理系统?基于 Ubuntu 的 Dootask 私有化部署实战
linux·运维·ubuntu