nginx fair模块安装方法

2025-04-26 17:16:03

1、如果nginx没有安装fair模块,在使用fair负载均衡的模式的时候会报错

nginx fair模块安装方法

2、获取到当前nginx的版本号

nginx fair模块安装方法

3、获取到对应本部的nginx的源码包和fair模块文件

nginx fair模块安装方法

4、解压nginx源码包并编译带上fair模娄壶狩匈块文件./configure --prefix=/etc/nginx --add-module=/root/shell/nginx-upstream-fairmake不要make install,会覆盖

nginx fair模块安装方法

5、./configure: error: the HTTP rewrite module requires the PCRE library.

nginx fair模块安装方法

6、yum -y install pcre pcre-devel

nginx fair模块安装方法

7、./configure: error: the HTTP gzip module requires the zlib library.

nginx fair模块安装方法

8、yum -y install zlib zlib-devel编译完成之后再次执行步骤4

nginx fair模块安装方法
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
相关推荐
  • 阅读量:27
  • 阅读量:75
  • 阅读量:28
  • 阅读量:89
  • 阅读量:88
  • 猜你喜欢