Configure yum source:
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
View nginx source:
yum list | grep nginx
安装nginx:
yum install -y nginx
Check whether the installation is successful:
nginx -v
View the nginx installation directory:
rpm -qc nginx
start up
systemctl start nginx
Check
systemctl status nginx