CentOS下安装配置Nginx

安装编译环境

# yum install wget git gcc gcc-c++ g++ autoconf autoconf2.13 automake make m4

安装配置Nginx

# wget http://nginx.org/download/nginx-1.14.0.tar.gz
# wget https://www.openssl.org/source/openssl-1.1.0h.tar.gz
# wget http://www.zlib.net/zlib-1.2.11.tar.gz
# wget https://ftp.pcre.org/pub/pcre/pcre-8.42.tar.gz
# wget https://github.com/alibaba/nginx-http-concat/archive/1.2.2.tar.gz -O nginx-http-concat-1.2.2.tar.gz
# tar -zxf nginx-1.14.0.tar.gz 
# tar -zxf openssl-1.1.0h.tar.gz 
# tar -zxf zlib-1.2.11.tar.gz 
# tar -zxf pcre-8.42.tar.gz 
# tar -zxf nginx-http-concat-1.2.2.tar.gz
# git clone https://github.com/arut/nginx-rtmp-module
# cd nginx-1.14.0
# ./configure --prefix=/data/server/nginx \
              --with-pcre=../pcre-8.42 \
              --with-zlib=../zlib-1.2.11 \
              --with-http_ssl_module \
              --with-openssl=../openssl-1.1.0h \
              --add-module=../nginx-http-concat-1.2.2 \
              --add-module=../nginx-rtmp-module
# make 
# make install
# ln -s /data/server/nginx/sbin/nginx /usr/sbin/
# nginx -v

版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/02/12/centos-install-nginx/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
打赏
海报
CentOS下安装配置Nginx
安装编译环境 # yum install wget git gcc gcc-c++ g++ autoconf autoconf2.13 automake make m4 安装配置Nginx # wget http://nginx.org/download/nginx-1.14……
<<上一篇
下一篇>>
文章目录
关闭
目 录