Tutorial by Examples

Nginx is a Web server used to serve HTTP requests over the Internet. Nginx is available on Linux, Windows and other OSes as direct download, and can also be built from source. For detailed instructions see Nginx official reference. ubuntu/debian nginx stable version is available in official repo,...
Run command below to install nginx. sudo apt-get install nginx By default, Nginx automatically starts when it is installed. You can access the default Nginx landing page to confirm that the software is running properly by visiting your server's domain name or public IP address in your web browse...
As a root user: nginx -s restart Ubuntu example sudo service nginx restart
As a root user: sudo nginx -s reload Ubuntu 14.04 example sudo service nginx reload Ubuntu 16.04 example sudo systemctl reload nginx Before reloading, it is a good idea to check config for syntax errors: sudo nginx -t Or sudo service nginx configtest
Run as a root user. Fast shutdown: nginx -s stop Graceful shutdown: nginx -s quit
One of the biggest appeals of Nginx is the difference in how it works internally as compared to the other popular servers, specially Apache. Servers are busy programs as they have to serve requests from multiple clients. The more requests a server can successfully serve per second, the better. Ngi...

Page 1 of 1