报错:
nginx: [emerg] unknown directive "stream" in /usr/local/nginx/conf.d/ssh.conf

判断模块是否存在

 进入二进制部署包解压后目录

 添加模块,与之前加载的模块一致,并新添加 --with-stream 模块

./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_ssl_module --with-http_stub_status_module  --with-stream  

安装完成后执行 make

 完成编译后 现将之前的nginx关闭 以及将nginx文件进行备份

cd /usr/local/nginx/sbin &&  cp nginx nginx.bak
cp nginx /usr/local/nginx/sbin/

重启 nginx

./nginx -s reload

  

posted on 2023-04-03 10:29  属于我的梦,明明还在  阅读(174)  评论(0)    收藏  举报