刚刚更新到最新的Windows 10版本(build 14316),我立即开始玩WSL,即Windows Subsystem for Linux,它应该是在Windows上运行Ubuntu的安装。
也许我正在尝试不可能的事情,试图在上面安装Apache,但是,谁来解释一下为什么这不可能。
无论如何,在安装过程中(sudo apt-get install apache2),在下载并正确安装了依赖项后,我收到了以下错误信息。
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: No such file or directory
runlevel:/var/run/utmp: No such file or directory
* Starting web server apache2 *
* The apache2 configtest failed.
Output of config test was:
mktemp: failed to create directory via template '/var/lock/apache2.XXXXXXXXXX': No such file or directory
chmod: missing operand after '755'
Try 'chmod --help' for more information.
invoke-rc.d: initscript apache2, action "start" failed.
Setting up ssl-cert (1.0.33) ...
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
WARN: / is group writable!
现在,我明白了,Apache2似乎缺少一些文件夹和文件来工作。在我开始改变任何会扰乱我的Windows安装的东西之前,我想问问是否有不同的方法?另外,我是否应该担心/是可写组,或者这只是标准的Windows行为?