Let’s jump right into it | how to install Nginx on ubuntu!
Specification:
OS Version: Ubuntu Os 18.04.3 (LTS) x64
Nginx version: nginx/1.14.0
OS Version: Ubuntu Os 18.04.3 (LTS) x64
Nginx version: nginx/1.14.0
Update OS:
bluegrid-edu:~# apt-get update
Install nginx:
bluegrid-edu:~# apt-get install nginx
Make sure it’s properly installed:
bluegrid-edu:~# systemctl status nginx
Let’s just make sure it start automatically when the server is rebooted:
bluegrid-edu:~# systemctl enable nginx
Voila!
Now we have the Nginx installed and running. We can confirm that it serves the HTTP properly with the following command:
bluegrid-edu:~# curl -I localhost
Related article: How to use Nginx as a reverse proxy