Watch the video:
Timestamps:
0:00 - Intro/Explanation
0:15 - Updating system
0:44 - Adding Nginx Mainline ppa
1:20 - Installing Nginx Mainline
1:37 - Verify Nginx Mainline is installed
1:55 - Enable Nginx as service
Want to try out new features coming to Nginx? Well, you can by installing Nginx-Mainline - The feature-packed most up-to-date cutting edge version of Nginx. Installation is simple, and that’s what I’ll be showing you in this video.
Update:
sudo apt update && sudo apt upgrade -y
Uninstall existing Nginx:
sudo systemctl stop nginx
sudo apt-get autoremove nginx*
Install mainline Nginx:
sudo add-apt-repository ppa:ondrej/nginx-mainline -y
sudo apt update
sudo apt install nginx-core nginx-common nginx nginx-full -y
Verify Nginx Mainline:
apt-cache policy nginx
Enable Nginx as service:
systemctl status nginx
sudo systemctl start nginx
sudo systemctl enable nginx
Timeline: