sudo yum install epel-release $ vi /etc/yum.repos.d/nginx.repo [nginx] name=nginx repo baseurl=https://nginx.org/packages/centos/7/$basearch/ gpgcheck=0 enabled=1 sudo yum install nginx sudo systemctl enable nginx sudo systemctl start nginx