运行在Ubuntu14.04上,我尝试用:sudo apt-get install apache2安装Apache。这是成功的,我然后键入sudo service apache2 start。当我导航到http://localhost:80时,我会得到一个500个错误和nginx版本。
service apache2 status什么也不返回。
我想安装Nginx,但是80端口已经被Apache2占用了。我通过以下方式停止它:
$ sudo /etc/init.d/apache2 stop[ ok ] Stopping apache2 (via systemctl): apache2.service.我可以安装Nginx。我使用sudo systemctl status ng