yum安装nginx报错解决nginx: [emerg] unknown directive “stream“ in /etc/nginx/nginx.conf问题【转】
yum安装nginx,其中看nginx有stream参数,但是nginx -t是报错“nginx: [emerg] unknown directive “stream“ in /etc/nginx/nginx.conf问题”
解决办法
# 安装nginx源 curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo # 先安装 yum -y install epel-release #应该是缺少modules模块 yum -y install nginx-all-modules.noarch 然后在用nginx -t就好了 [root@k8s-node2 ~]# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful
转自
(40条消息) 解决nginx: [emerg] unknown directive “stream“ in /etc/nginx/nginx.conf问题_一个不专业的码农的博客-CSDN博客
https://blog.csdn.net/weixin_45858439/article/details/122215639
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
2018-09-05 zookeeper3.4.6配置实现自动清理日志【转】
2018-09-05 Kafka管理工具介绍【转】
2018-09-05 Kafka监控KafkaOffsetMonitor【转】