直接来干货了,默认你已经装好了 gcc make pcre-devel openssl-devel 四个软件包
tar
-xf nginx的压缩包
cd 进入压缩包解压的目录
./configure \
--with
-http_ssl_module \
--with
-stream \
make
mv /usr
/local
/nginx
/sbin
/nginx
/usr
/local
/nginx
/sbin
/nginx
.old
cp objs
/nginx
/usr
/local
/nginx
/sbin
/
make upgrade
/usr
/local
/nginx
/sbin
/nginx
-V 查看是否更新和模块的加载情况