Skip to main content

nginx on RHEL

nginx

Install nginx

$ sudo yum install nginx

Enable nginx service on boot

$ sudo systemctl enable nginx

Start nginx service

$ sudo systemctl start nginx

Check nginx service status

$ sudo systemctl status nginx
nginx: enable, start, and check status

Check nginx version

$ nginx -V
Check nginx version: nginx -V

Check configuration files

$ sudo nginx -t

Reload nginx service

$ sudo nginx -s reload

nginx Cheat Sheet


sudo nginx -s reload
sudo nginx -t
sudo systemctl enable nginx : Enable nginx on start up
sudo systemctl start nginx : Start nginx
sudo systemctl reload nginx : Reload nginx
systemctl status nginx : Check nginx status

nginx in the news