我想安装Nginx,但端口80已被Apache2占用。我停下来:
$ sudo kill -9 my-apache-pid
$ sudo service apache2 stop
$ sudo /etc/init.d/apache2 stop
[ ok ] Stopping apache2 (via systemctl): apache2.service.
我可以安装Nginx。我用sudo systemctl status nginx
。它显示运行良好,Apache2似乎无效。但是当我在浏览器中输入我的IP地址时,它仍然显示Apache2 hello-page。为什么?
我有同样的问题。令我惊讶的是清除历史记录和浏览器的cookie工作。