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

Popular posts from this blog

Windows command: icacls

Icacls is a command-line utility that can be used to display or modify discretionary access control lists (DACLs) on specified files, and apply stored DACLs to files in specified directories.

Linux: Commonly Used Shortcuts

Get more productive with these shortcuts. Commonly used shortcuts in Linux Shortcuts Action CTRL + a Jump to the beginning of line CTRL + e Jump to the end of line CTRL + d Close the terminal CTRL + l Clear terminal screen CTRL + u Delete from cursor back to beginning Esc + . Get the last argument of the previous command

Microsoft Photos App

Reset, uninstall and Reinstall Microsoft Photos app, the default photo viewer on Microsoft Windows 10.