First, installation
If you have installed Apache or Tomcat and other 80-port services can be stopped first, or just start nginx will be used in the opening of the error, or you can modify the nginx.conf listen other ports first.
sudo apt-get update: Update
Apt-get-y Install Nginx: Installation, configuration file is/etc/nginx/nginx.conf
Service Nginx Start: Open Services two, uninstall
sudo apt-get–purge remove Nginx Third, to see if a service is opened, Nginx for example Linux each application run will produce a process, then we can see if the Nginx process exists to determine whether it started: PS -ef | grep nginx directly view the process ID:PS-C nginx-o PID (detects whether a service is on or off is recommended for this command, not on the ID) detect service that consumes 80 ports: NETSTAT-ANP | Grep:80 lsof-i:80 can also find out if a process is running on the 80-port process. Service Nginx Status
The results of the above command run as follows: You can clearly see the status of the Nginx service