【转载】nginx: [emerg] unknown directive “stream“ in /etc/nginx/nginx.conf:85

nginx源
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
先安装
yum -y install epel-release
在安装nginx
yum -y install nginx
在nginx的配置文件添加stream后nginx -t报错

image.png

解决办法:
yum -y install nginx-all-modules.noarch
然后在用nginx -t就好了


image.png

————————————————
版权声明:本文为CSDN博主「来云朋」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/Laiyunpeng666/article/details/119922539

你可能感兴趣的:(【转载】nginx: [emerg] unknown directive “stream“ in /etc/nginx/nginx.conf:85)