我试图重新启动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中):
cp /path/to/file /mnt/c/whatever
。当然,系统上有什么路径可以存储临时副本。cp /mnt/c/whatever /path/to/file
。rm /mnt/c/whatever
(清理临时文件-您也可以从资源管理器中执行此操作)。本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句