How To Install Nginx on Ubuntu 16.04
How To Install Nginx on Ubuntu 16.04? Nginx is one of the most popular web servers in the world and is responsible for hosting some of the largest and highest-traffic sites on the internet. It is more resource-friendly than Apache in most cases and can be used as a web server or a reverse proxy. In this guide, we'll discuss how to get Nginx installed on your Ubuntu 16.04 server.
Install Nginx on Ubuntu 16.04
First let’s start by ensuring your system is up-to-date.
apt-get update apt-get upgrade
apt-get install nginx
After that, run the commands to enable Nginx to automatically startup when your server starts:
sudo systemctl enable nginx sudo systemctl start nginx
To confirm if the Nginx service is indeed running, use the following command:
sudo systemctl status nginx
You can verify that Nginx is really running by opening your favorite web browser and entering the URL http://your-server’s - address, if it is installed.