Install nginx and use it as a reverse proxy

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 

Guess you like

Origin blog.csdn.net/icjs_cc/article/details/131663229
Recommended