Centos 利用yum源安装 nginx stream模块
环境
- CentOS 7.9 (腾讯云服务器)
- nginx 1.20.1
- 配置stream参考这里。
nginx 动态模块
nginx 1.9.11 开始增加加载动态模块支持,从此不再需要替换nginx文件即可增加第三方扩展。
利用 yum 源安装 nginx 1.20.1 后,的某些模块就是动态模块。
shell> nginx -V
nginx version: nginx/1.20.1
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
built with OpenSSL 1.1.1g FIPS 21 Apr 2020
TLS SNI support enabled
configure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules
--conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log
--http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy
--http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi
--http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/run/nginx.pid --lock-path=/run/lock/subsys/nginx
--user=nginx --group=nginx --with-compat --with-debug --with-file-aio --with-google_perftools_module
--with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_degradation_module
--with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic
--with-http_mp4_module --with-http_perl_module=dynamic --with-http_random_index_module --with-http_realip_module
--with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module
--with-http_sub_module --with-http_v2_module --with-http_xslt_module=dynamic --with-mail=dynamic --with-mail_ssl_module
--with-pcre --with-pcre-jit --with-stream=dynamic --with-stream_ssl_module --with-stream_ssl_preread_module
--with-threads
--with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic'
--with-ld-opt='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-E
--with-stream=dynamic
stream模块是动态加载的模块--modules-path=/usr/lib64/nginx/modules
动态模块的路径是/usr/lib64/nginx/modules
。默认情况下,未安装动态模块,所以/usr/lib64/nginx/modules
是空目录
安装stream模块
nginx 用yum源安装的,stream模块也用yum源安装
shell> yum install -y nginx-mod-stream
- 安装stream模块
或者:
yum install -y nginx-all-modules
- 安装所有的动态模块
安装完成后检查
shell> ls /usr/lib64/nginx/modules
ngx_http_image_filter_module.so ngx_http_perl_module.so ngx_http_xslt_filter_module.so
ngx_mail_module.so ngx_stream_module.so
设置 nginx stream代理
参考这里:https://sayyy.blog.csdn.net/article/details/102728585
Centos 利用yum源安装 nginx stream模块相关推荐
- Centos 利用yum源安装 nginx 1.20.1
环境 CentOS 7.9 (腾讯云服务器) nginx 1.20.1 yum源说明 腾讯云的 CentOS 服务器,用的是腾讯的yum源镜像. 感兴趣的可以去/etc/yum.repos.d中看看. ...
- CentOS 8 利用yum源安装nginx
环境 1, CentOS 8 2, nginx 1.18.0 步骤 1,先安装 yum-utils shell> yum install yum-utils 2,添加nginx源.创建文件/et ...
- Linux 利用yum源安装nginx
环境 1, CentOS 7 2, nginx 1.12.2 步骤 1,添加nginx源 rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS ...
- CentOS 7 yum源安装Nginx
2019独角兽企业重金招聘Python工程师标准>>> 教程中的步骤需要root用户权限或者sudo 1.添加Nginx Repository yum install epel-re ...
- linux yun nginx,Linux - CentOS 7 通过Yum源安装 Nginx
添加源 sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.no ...
- CentOS 使用 yum 源安装 PHP 各版本、及 PHP 各扩展总结
环境:CentOS 7.6 缘由:由于 linux 的 yum 源中的 php 不是最新版本,所以我们使用 https://webtatic.com/ 的 yum 源来安装. 1.如果之前已经安装我们 ...
- Linux 利用yum源安装subversion(svn)客户端
前言 CentOS 7 subversion(svn) 安装过程 yum 方式安装 shell> yum install subversion 检查是否安装成功 shell> svn -- ...
- Linux 利用yum源安装php5.6+nginx
前言 CentOS 7 nginx1.12.2 php5.6 nginx已经安装完成,且document root 目录为/usr/share/nginx/html. 步骤 1,添加php5.6源 s ...
- Linux 利用yum源安装php7.0+nginx
环境 1, CentOS 7 2, nginx1.12.2 3, php7.0 nginx已经安装完成,且document root 目录为/usr/share/nginx/html. 步骤 1,添加 ...
最新文章
- 微页导出为html文件怎么打开吗,h5自动生成工具(示例代码)
- MAC电脑快捷键整理
- WSUS注冊表導入,工作組用戶系統更新
- SQL Server-事务处理(Tansaction)与锁(Lock)
- linux生成文件清单,Linux 获取文件名称生成列表 txt - create_filelist
- 论文浅尝 | Doc2EDAG:一种针对中文金融事件抽取的端到端文档级框架
- Atitit. 数据约束 校验 原理理论与 架构设计 理念模式java php c#.net js javascript mysql oracle...
- idea中配置maven仓库
- 【MySQL数据库开发之四】MySQL 处理模式/常用查询/模式匹配等(下)
- 短期逾期影响贷款吗?
- 《父亲家书》选:如何处理考研与工作机会(下)
- [2018.10.18 T3] 玩串
- 大数据项目流程(必须会)
- 26--学生签到 管理员页面功能(5) foreach
- 推荐给大家的桌面管理软件: Fences
- 【微信小程序入门到精通】— AppID和个性配置你学会了么?
- MYS-6ULX-IOT 开发板测评——实现简单的物联网应用
- 《曾国藩传》读书笔记
- Spring+SpringMVC+MyBatis明日方舟版人员信息管理系统前端页面代码前后端交互+SSM框架 管理员登录 游客登录 普通用户登录 人员的增删改查 信息更新 图片上传 分页查询)
- HFSS15 win10_64位破解