【问题标题】:Could not open configuration file /etc/apache2/apache2.conf: No such file or directory无法打开配置文件 /etc/apache2/apache2.conf:没有这样的文件或目录
【发布时间】:2012-07-03 19:03:56
【问题描述】:

我刚刚安装了 Ubuntu 并从 LAMP 开始。

我安装了它,在我安装 uTorrent 之前它运行良好。然后在 localhost 没有打开之后,我尝试停止 apache 并再次使用它重新启动。

我用过-sudo service apache2 restart

现在这个错误来了 - 无法打开配置文件 /etc/apache2/apache2.conf: 没有这样的文件或目录

我查了一下,没有同名的文件。

已安装的 uTorrent 正在 8080 端口上运行...会不会有问题?

我真的不知道该怎么办。

【问题讨论】:

    标签: apache ubuntu lamp utorrent


    【解决方案1】:

    有 /etc/apache2/httpd.conf 吗?

    如果有,请查看其中包含的内容,即查找以下内容:

    Include /etc/apache2/apache2.conf
    

    由于 conf 文件中 Include 指令中的路径名不正确,基本上会引发错误

    【讨论】:

    • 我已经删除了 apache。安装后有什么办法可以恢复出厂设置...很多问题来了...不知道为什么...但是我想打:)
    • 当我尝试再次安装 apache 时,它​​即将到来:- debconf: DbDriver "config": /var/cache/debconf/config.dat 被另一个进程锁定:资源暂时不可用
    猜你喜欢
    • 2017-06-20
    • 2015-10-10
    • 2019-02-09
    • 2018-01-20
    • 1970-01-01
    • 2021-04-08
    • 2023-04-06
    • 2019-04-07
    • 2017-05-04
    相关资源
    最近更新 更多