Welcome back to another Nginx tutorial. Today, we will guide you on how to install Magento 2 on Ubuntu 18.04 using nginx
Step 1 – updates the list of available packages and their versions and installs newer versions of the packages you have.
sudo apt update sudo apt upgrade
Step 2 – Now install the Nginx web server
sudo apt install nginx -y
After the installation is complete, start the Nginx service and enable it to launch every time at system boot.
systemctl start nginx systemctl enable nginx update-rc.d nginx defaults
Nginx web server has been installed, check it using netstat command and make sure the HTTP port 80 is on the ‘LISTEN’ state. Another way is by using curl command as below.
netstat -plntu curl -I localhost