安装编译开发环境:
yum install -y gcc gcc-c++ autoconf automake make
安装nginx所需第三方库支持
yum install zlib zlib-devel openssl openssl-devel pcre pcre-devel wget httpd-tools vim -y
下载安装源码
wget http://nginx.org/download/nginx-1.23.3.tar.gz
解压缩进入目录
tar -zxvf nginx-1.23.3.tar.gz
cd nginx-1.23.3
开始安装
./configure --prefix=/home/soft/nginx
make && make install
评论 (0)