Linux(Centos 7)安装Nginx教程
\#安装gcc
yum -y install gcc
\#安装pcre
yum install -y pcre pcre-devel
\#安装zlib
yum install -y zlib zlib-devel
\#下载Nginx安装包
wget http://nginx.org/download/nginx-1.17.10.tar.gz
\#解压Nginx安装包
tar -zxvf nginx-1.17.10.tar.gz
\#编译安装Nginx
cd nginx-1.17.10 ./configure make && make install
\#启动Nginx
cd /usr/local/nginx/ sbin/nginx
测试Nginx是否启动:在浏览器地址栏输入IP