Install NGINX
yum install nginx -y
- Start NGINX service
systemctl start nginx.service
- Set up auto-start at boot
systemctl enable nginx.service
- Restart NGINX service
systemctl restart nginx.service
- Close NGINX service
systemctl stop nginx.service
- Reload NGINX configuration (no need to stop the service to take effect)
systemctl reload nginx.service
- Did the local test start successfully?
curl -I localhost