0
点赞
收藏
分享

微信扫一扫

nginx unknown directive

nginx默认安装的时候没有加载stream模块

需要重新对源文件进行编译、安装,通过添加--with-stream参数指定安装stream模块

./configure --with-stream

make & make install

再次检查nginx.conf配置文件,确认配置无语法错误后,再次尝试启动服务。

nginx -t 检查配置文件是否正确

nginx -c 指定启动的配置文件

nginx默认安装的时候没有加载stream模块

需要重新对源文件进行编译、安装,通过添加--with-stream参数指定安装stream模块

./configure --with-stream

make & make install

再次检查nginx.conf配置文件,确认配置无语法错误后,再次尝试启动服务。

nginx -t 检查配置文件是否正确

nginx -c 指定启动的配置文件

举报

相关推荐

0 条评论