系统环境
环境:centos7
etcd3
nginx1.14
confd
更换yum源
yum install vim wget net-tools -y
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
enabled=0
yum clean all
yum makecache
安装NGINX
mkdir -p /opt/software
groupadd nginx
useradd -g nginx nginx
yum -y install gcc gcc-c++ pcre pcre-devel openssl openssl-devel wget GeoIP GeoIP-devel
wget -P /opt/software http://nginx.org/download/nginx-1.14.0.tar.gz
tar -zxvf /opt/software/nginx-1.14.0.tar.gz -C /opt/software
cd /opt/software/nginx-1.14.0
./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/nginx/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf
mkdir -p /usr/local/nginx/conf/conf.d
mkdir -p /usr/local/nginx/tmp/client
make && make install
/usr/local/n