$ sudo apt-get update
$ sudo apt install nginx
Enable Nginx and launch the web server
$ sudo ufw app list
$ sudo ufw enable
$ sudo ufw allow 'Nginx HTTP'
$ sudo ufw status
$ systemctl status nginx
Check your static server IP address by typing the following command:
$ curl -4 icanhazip.com
To verify the Nginx installation, visit http://server_ip_address
on your browser.
$ systemctl stop nginx
$ systemctl start nginx
$ systemctl restart nginx
$ systemctl reload nginx
$ systemctl disable nginx
$ systemctl enable nginx
$ gedit /var/www/html/index.nginx-debian.html
$ sudo systemctl restart nginx
$ curl -4 icanhazip.com
Visit
http://server_ip_address
on your browser.