原因是apache2服务是启动状态,把apache2服务停掉即可。
sakura@ubuntu:~$ sudo service nginx start
sakura@ubuntu:~$ sudo service nginx status
* nginx is not running
sakura@ubuntu:~$ sudo service nginx status
* nginx is not running
sakura@ubuntu:~$ sudo service apache2 status
* apache2 is running
sakura@ubuntu:~$ sudo service apache2 stop
* Stopping web server apache2 *
sakura@ubuntu:~$ sudo service apache2 status
* apache2 is not running
sakura@ubuntu:~$ sudo service nginx start
sakura@ubuntu:~$ sudo service nginx status
* nginx is running
ubuntu15.04手动安装nginx1.93并配置php:http://www.linuxdiyf.com/linux/13151.html
如何在Ubuntu 15.04中安装nginx和google pagespeed:http://www.linuxdiyf.com/linux/12725.html
ubuntu15.04 nginx1.6.5配置虚拟主机:http://www.linuxdiyf.com/linux/12585.html
ubuntu 15.04手动安装nginx 1.9.0:http://www.linuxdiyf.com/linux/12038.html
ubuntu14.04安装nginx和php5.6.12:http://www.linuxdiyf.com/linux/13418.html