To install and set up Nginx on Debian Linux 9, follow these steps:
- Update the package list:
sudo apt update
- Install Nginx:
sudo apt install nginx
- Start Nginx:
sudo systemctl start nginx
- Enable Nginx to start automatically on boot:
sudo systemctl enable nginx
- Check the status of Nginx to ensure it is running:
sudo systemctl status nginx
- Open your web browser and access the IP address of your server to verify that Nginx is working. The default welcome page should be displayed.
That’s it! Nginx is now installed and running on your Debian Linux 9 system.