小编S M*_*den的帖子

在“sudo apt-get install apache2”之后无法使用“sudo systemctl restart apache2”(在 WSL 上运行的 Xenial Ubuntu)

以前的标题是“在 sudo apt-get install apache2 之后找不到 httpd(在 Windows 上运行的 Ubuntu 仿真)”

因此,我在安装了适用于 Linux 的 Windows Subsytem以模拟在 Windows 10 上运行的 Ubuntu后,安装了适用于 Windows 10 的 Canonical Group Limited Ubuntu 应用程序

跑步 lsb_release -a

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:        16.04
Codename:       xenial
Run Code Online (Sandbox Code Playgroud)

所以我跑了sudo apt-get install apache2,我可以看到一些安装的证据,因为现在存在/etc/apache2目录,并且有一个默认的 Apache index.html 页面/var/www/html/index/html

但是没有httpdinusr/binusr/sbin

那么 httpd 在哪里?

我无法用sudo systemctl restart apache2它来启动 Apache报告

Failed to connect …
Run Code Online (Sandbox Code Playgroud)

apache2 windows-subsystem-for-linux

2
推荐指数
1
解决办法
7033
查看次数