【问题标题】:Apache config file not being installed未安装 Apache 配置文件
【发布时间】: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 并且安装成功。

标签: raspbian apache2.4


【解决方案1】:

试试

sudo apt-get purge apache2

如果您只想要一个轻量级的 http 服务器,您可能想尝试 Nginx 作为替代品。

【讨论】:

    猜你喜欢
    • 2017-08-12
    • 2017-10-05
    • 2018-09-02
    • 2010-09-14
    • 1970-01-01
    • 1970-01-01
    • 2011-06-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多