\#安装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

标签: Linux, nginx, Nginx, Centos, tar, install, pcre

相关文章推荐

添加新评论,含*的栏目为必填