Controlling the Nginx service
At this stage, you should have successfully built and installed Nginx. The default location for the output files is
/usr/local/nginx, so we will be basing future examples on this.
Daemons and services
The next step is obviously to execute Nginx. However, before doing so, it's important to understand the nature of this application. There are two types of computer applications—those that require immediate user input, thus running on the foreground, and those that do not, thus running in the background. Nginx is of the latter type, often referred to as daemon. Daemon names usually come with a trailing "d" and a couple of examples can be mentioned here—
httpd the HTTP server daemon,
named the name server daemon, or