【发布时间】:2020-01-01 02:31:22
【问题描述】:
我在我的树莓派 4 上安装了 apache2,并且出现了一些奇怪的行为,所以我通过 apt remove apache2 将其删除,删除了 /etc/apache2 目录并通过 sudo apt-get apache2 -y 重新安装。
重装后服务器无法启动,我判断/etc/apache2中没有apache2.conf文件。
我已经尝试安装和重新安装几次,但无济于事。我做错了什么?
【问题讨论】:
-
dpkg --get-selections 显示 apache2 处于卸载状态,然后我运行 dpkg -P apache2 并重新安装 apache apt-get apache2 -y 并且安装成功。