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-yinstallepel-release #应该是缺少modules模块...
##应该是缺少stream这个模块 [root@zlpmaster1 ~]# yum install nginx-mod-stream ##之后则正常启动
nginx: [emerg] unknown directive “” in /usr/local/nginx/nginx.conf.conf:xx报错处理 那么,大多数我们就是配置刚刚写的这句代码的时候,多打了个空格,细心找一下,重写下就ok了!
openresty 里,在 openresty/nginx/sbin/ 下有一个自己 ningx 。 openresty 里的 nginx -V 大概是这样的: # /usr/local/openresty/nginx/sbin/nginx -V nginx version: openresty/1.15.8.1 built by gcc 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC) built with OpenSSL 1.1.0j 20 Nov 2018 TLS SNI suppo...