To install Nginx, first update your system's package list using 'sudo apt update'. This ensures you get the latest package info. Next, install Nginx with 'sudo apt install nginx -y' which installs it without asking for confirmation. After installation, check if Nginx is running using 'sudo systemctl status nginx'. To make sure Nginx starts automatically when your computer boots, run 'sudo systemctl enable nginx'. Finally, start the Nginx service with 'sudo systemctl start nginx'. You can verify Nginx is running by opening your browser and visiting localhost, where you should see the Nginx welcome page. This process sets up Nginx as a web server ready to serve web pages.