How to install NGINX on Ubuntu 16.04 LTS?IntroductionNginx is an open source HTTP web server. It was created by Igor Sysoev and released on 2004. we can use it to deploy web applications. In this tutorial, we are installing it over the Ubuntu operating system. Prerequisites
Nginx InstallationInstallation process is pretty easy, it requires just single line of command. The following command is used for installation. ![]() After installation, we can access it using browser by typing localhost and it will display the following output. ![]() Well, we have installed it successfully on the Ubuntu operating system. Manage Nginx ServerThe following commands are used to manage server tasks like stop, start etc. Start NginxUse following command to start nginx server. Stop NginxUse following command to stop nginx server. Restart NginxUse following command to restart nginx server. Status of NginxUse following command to check status of nginx server. ![]() Reload NginxIf we make changes to the server configuration, simply reload the nginx without dropping connection. Use the following command to reload the server. Disable Nginx at Booting TimeBy default, Nginx is enable at booting time and starts automatically. If we want to disable it, use the following command. ![]() Enable Nginx at Booting TimeIf we want to start Nginx server automatically at boot time, use the following command. ![]() Extra Info/var/www/html/ is a server root directory. /etc/nginx/ is a configuration directory. /var/log/nginx/access.log is a server log file that contains records of all request. /var/log/nginx/error.log is a server error log file that contains error records.
Next TopicHow To Run GlassFish In Ubuntu
|