How to install and use Nginx on CentOS 7 / RHEL 7

Originally published at: https://www.cyberciti.biz/faq/how-to-install-and-use-nginx-on-centos-7-rhel-7/

How do I install and configure the latest version of Nginx web server on a CentOS 7 or RHEL 7 server using the CLI and host a static site?