Problem scenario
You want to install Nginx on a CentOS/RHEL/Fedora Linux server. What do you do?
Solution
1. Create a file here: /etc/yum.repos.d/nginx.repo
2. It should have these five non-blank lines:
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/centos/7/$basearch/
gpgcheck=0
enabled=1
3. Run these commands:
sudo yum -y update
sudo yum -y install nginx
sudo systemctl start nginx