一、背景介绍
二、卸载其他版本
三、安装
关闭防火墙和selinux
[root@localhost ~]# hostnamectl set-hostname nginx[root@localhost ~]# bash[root@nginx ~]# systemctl stop firewalld[root@nginx ~]# systemctl disable firewalld[root@nginx ~]# setenforce 0
[root@nginx ~]# vim /etc/yum.repos.d/nginx.repo[nginx-stable]name=nginx stable repobaseurl=http://nginx.org/packages/centos/$releasever/$basearch/gpgcheck=0enabled=1
