How to install and use Nginx on CentOS 8

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

How do I Install Nginx on CentOS 8 Linux server? How can configure the latest version of Nginx web server on a CentOS Enterprise Linux 8 server using the CLI and host a static site?