Ubuntu Server 20.10-Apache2 安装错误

Ubuntu Server 20.10-Apache2 安装错误

我正在关注指导用于 Apache2 安装。我的理解:这适用于“Ubuntu 16.04 LTS”,但是我找不到任何适用于 Ubuntu Server 20.10 的指南,所以我想我可以尝试一下...

第二步-A:运行$sudo apt update

点击数:1http://us.archive.ubuntu.com/ubuntugroovy 发布
热度:2http://us.archive.ubuntu.com/ubuntugroovy-updates 发布中
点击数:3http://us.archive.ubuntu.com/ubuntugroovy-backports 发布中
点击数:4http://us.archive.ubuntu.com/ubuntugroovy-security InRelease
正在读取软件包列表... 完成 正在
构建依赖关系树
正在读取状态信息... 完成
42 个软件包可以升级。运行“apt list ---upgradable”即可查看。

第二步-B:运行$sudo apt install apache2

apache2.service 的作业失败,因为控制进程退出并显示错误代码。
有关详细信息,请参阅“systemct1 status apache2.service”和“journalct1 -xe”。invoke
-rc.d:initscript apache2,操作“start”失败。

我究竟做错了什么?

更新#1;所以我尝试做出sudo systemctl status apache2.service回应......

apache2.service - Apache HTTP 服务器
已加载:已加载(/lib/systemd/system/apache2.service;已启用;供应商预设:已启用)
活动:失败(结果:退出代码)自 2021-01-26 星期二 18:01:40;77 毫秒前
文档:https://httpd.apache.org/docs/2.4/
进程:618874 ExecStart=/usr/sbin/apachect1 启动(代码=已退出,状态=1/FAILURE)

错误指出...

apache2.service:控制进程已退出,代码=exited,状态=1/FAILURE
apache2.service:失败,结果为“exit-code”。
无法启动 Apache HTTP 服务器。

相关内容