Centos离线安装Nginx
· 技术积累 · Centos7 Nginx

离线安装nginx1.18.0版本源码包

基于centos7.8 Minimal系统,源码编译安装后打包需要的资源

使用:
1、解压压缩包
2、执行offline_install.sh脚本

# nginx版本: nginx 1.18.0
# openssl版本: 1.1.1f
# zlib版本: 1.2.11
# pcre版本: 8.44

# nginx编译参数
./configure \
--prefix=/usr/local/nginx \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/run/nginx.lock \
--http-client-body-temp-path=/usr/local/nginx/client_temp \
--http-proxy-temp-path=/usr/local/nginx/proxy_temp \
--http-fastcgi-temp-path=/usr/local/nginx/fastcgi_temp \
--http-uwsgi-temp-path=/usr/local/nginx/uwsgi_temp \
--http-scgi-temp-path=/usr/local/nginx/scgi_temp \
--user=nginx \
--group=nginx \
--with-mail \
--with-stream \
--with-threads \
--with-file-aio \
--with-poll_module \
--with-select_module \
--with-http_v2_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_ssl_module \
--with-http_geoip_module \
--with-http_slice_module \
--with-http_gunzip_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_image_filter_module \
--with-http_gzip_static_module \
--with-http_random_index_module \
--with-http_secure_link_module \
--with-http_degradation_module \
--with-http_stub_status_module \
--with-mail_ssl_module \
--with-stream_ssl_module \
--with-stream_realip_module \
--with-stream_ssl_preread_module \
--with-pcre=/usr/local/nginx/src/pcre-8.44 \
--with-openssl=/usr/local/nginx/src/openssl-1.1.1f \
--with-zlib=/usr/local/nginx/src/zlib-1.2.11

百度网盘下载:https://pan.baidu.com/s/1aV7zEB6VBHX5wjHWZZO0mA | 显示密码

# 下载离线安装压缩包

# 解压压缩包
tar xf nginx1.18-offline-install.tar.gz
cd nginx1.18-offline-install

# 执行安装脚本
source offline_install.sh

Centos离线安装Nginx


本文最后更新时间 2024-04-10
文章链接地址:
https://me.jinchuang.org/archives/586.html
本站文章除注明[转载|引用],均为本站原创内容,转载前请注明出处
Nginx 配置 Referer 防盗链
MAXMIND 免费的GeoLite2数据库分享
yum安装出现error: %pre() scriptlet failed, exit status 1, Error in PREIN scriptlet in rpm package 错误
不允许空 Referer访问,可以使用反向代理解决

网易云音乐-灰色歌曲播放辅助工具

Python3添加支持ssl模块

我要留言