用yum安装的nginx,报unknown directive “stream”
作者:互联网
用yum安装的nginx,报unknown directive “stream”
解决方法:yum install nginx-mod-stream -y
[root@localhost modules]# yum install nginx-mod-stream -y
已安装:
nginx-mod-stream.x86_64 1:1.20.1-2.el7
安装位置
[root@localhost ~]# ll /usr/lib64/nginx/modules
总用量 176
-rwxr-xr-x 1 root root 179864 6月 2 08:24 ngx_stream_module.so
nginx配置文件引入
[root@localhost ~]# cat /etc/nginx/nginx.conf
# 加载stream模块
load_module /usr/lib64/nginx/modules/ngx_stream_module.so;
user nginx;
worker_processes auto;
...
标签:directive,stream,unknown,module,nginx,yum,root,localhost 来源: https://www.cnblogs.com/yzgblogs/p/15235045.html