配置yum源:
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
查看nginx源:
yum list | grep nginx
安装nginx:
yum install -y nginx
查看是否安装成功:
nginx -v
查看nginx的安装目录:
rpm -qc nginx
启动
systemctl start nginx
查看
systemctl status nginx