- Configure Nginx:
sudo vi /etc/nginx/nginx.conf
. - Start Nginx:
sudo service nginx start
. - Restart Nginx to apply the configuration changes:
sudo service nginx restart
. - Check Nginx status:
sudo systemctl status nginx
. - Test Nginx configuration file:
sudo nginx -t
.