以前的标题是“在 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
。
但是没有httpd
inusr/bin
或usr/sbin
。
那么 httpd 在哪里?
我无法用sudo systemctl restart apache2
它来启动 Apache报告
Failed to connect …
Run Code Online (Sandbox Code Playgroud)