一、背景介绍

xxx

二、卸载其他版本

xxx

三、安装

关闭防火墙和selinux

  1. [root@localhost ~]# hostnamectl set-hostname nginx
  2. [root@localhost ~]# bash
  3. [root@nginx ~]# systemctl stop firewalld
  4. [root@nginx ~]# systemctl disable firewalld
  5. [root@nginx ~]# setenforce 0
  1. [root@nginx ~]# vim /etc/yum.repos.d/nginx.repo
  2. [nginx-stable]
  3. name=nginx stable repo
  4. baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
  5. gpgcheck=0
  6. enabled=1

四、配置

五、启动