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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。