apache2:无法打开配置文件/etc/apache2/apache2.conf:输入/输出错误

我试图重新启动apache2,但失败了。我收到以下消息。它以前工作过,所以我不知道出了什么问题以及如何解决。我在Windows 10上的Ubuntu 16.04上。

* Restarting web server apache2                                                            [fail]
* The apache2 configtest failed.
 Output of config test was:
apache2: Could not open configuration file /etc/apache2/apache2.conf: Input/output error*

 Action 'configtest' failed.
征服了

根据微软的说法,您绝对不能“在任何情况下都使用Windows应用程序,工具,脚本,控制台等来创建和/或修改Linux文件”。

如果要使用Windows编辑器编辑Linux文件,最简单的方法可能是这样的(在bash shell中):

  1. cp /path/to/file /mnt/c/whatever当然,系统上有什么路径可以存储临时副本。
  2. 使用您喜欢的Windows编辑器编辑任何内容当然,它需要支持Linux行尾。
  3. cp /mnt/c/whatever /path/to/file
  4. rm /mnt/c/whatever (清理临时文件-您也可以从资源管理器中执行此操作)。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Ubuntu上的Apache2配置文件路径。

更新Catalina到Big Sur apache错误/private/etc/apache2/httpd.conf:无法打开配置文件/private/etc/apache2/other/+php-osx.conf

Apache2 conf重定向

在文件输入输出java中使用arraylist

如何使用USACO的文件测试输入输出

无法删除文件-rm:无法删除输入/输出错误

无法安装rsync(无法创建...输入/输出错误)

如何获取apache2的默认配置文件?

500内部服务器错误Apache2打开pdf文件时

数据文件输入/输出错误

Debian的Apache2错误日志

apache启动时出错:无法打开配置文件/etc/apache2/mods-enabled/proxy_scgi.load

我无法通过apache2 -l的输出确定我的apache2安装是prefork还是worker(多线程)

WD外部HDD输入输出错误

启动apache2时出错“无法访问目录'/ var / log / apache2 /'的主要错误日志”

Ubuntu清除Apache2错误日志

从文件读取错误:输入/输出错误

Apache2不读取我的conf文件

无法启动apache2(不同的错误)

执行任何命令时出现“输入输出错误”

Zabbix和apache2 conf

Apache2,Django。导入错误

如果我在 ubuntu 18.04LTS 的 `/etc/apache2/ports.conf` 文件中打开 SSL 端口 443,我将无法重新启动 apace2

WSL 2 输入/输出错误

为什么我在java中的文件输入输出代码中出现一些错误?

无法重新启动 Apache2 - 错误

根据用户输入输出 txt 文件中的某些行

httpd.conf 新文件位置 -apache2

如何在apache2中自己抛出错误?