According to the normal installation of the software, directly through the following command to install:
$ sudo apt-get install Nginx
Installation is complete, in the/usr/sbin/directory is the nginx command directory, in the/etc/nginx/directory is nginx all the configuration files, for configuring Nginx server and load balancing information
To see if the Nginx process is started
$ ps-ef|grep Nginx
Nginx automatically creates the corresponding number of processes based on the number of cores of the current host's CPU (the current Ubuntu host is a 2-core 4-thread configuration)
Note: The service process started here is actually 4 processes, because the nginx process starts with a daemon that is used to protect the formal process from being aborted, and automatically restarts the process if the daemon inheritance is terminated.
Daemons are generally referred to as master processes, and business processes are called worker processes
To start the Nginx server command
The direct execution Nginx will start the server according to the default configuration file.
$ nginx
Stop nginx Service Command
$ nginx-s stopor$ Nginx-s quit
Reboot load
You can also use commands reopen and reload to restart Nginx or reload the file with the files.
Ubuntu installation Nginx