我知道三种重启 Apache 的方法:
sudo /usr/sbin/apachectl restart
sudo /etc/init.d/apache2 restart
service apache2 restart
Run Code Online (Sandbox Code Playgroud)
每种方式在下面做什么?
我也尝试过service apache2 stop
在 Ubuntu 上使用,但由于某种原因它不会停止服务器:本地主机仍然在我的桌面上运行。
apache-2.2 ×1