Installing nginx server on ubuntu. In this lesson, I will show you how to install Nginx on your Linux ubuntu computer. I am using Ubuntu 18 for this lesson.
Switch to sudo user:
sudo su
Update ubuntu packages:
apt update
Upgrade ubuntu:
apt upgrade
Installing Nginx:
apt install nginx
Checking Nginx version:
nginx -v
Output:
nginx version: nginx/1.14.0 (Ubuntu)
Checking Nginx Status:
systemctl status nginx
Another way for checking Nginx status:
systemctl is-active nginx
Output:
active
Browse your computer IP address, Or http://127.0.0.1/ for the local computer.