nginx fair模块安装方法

 时间:2026-04-23 23:08:55

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-fair

make 

不要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模块安装方法

  • nginx如何安装配置
  • 关于如何安装nginx
  • 如何源码编译安装NGINX
  • 怎么启动nginx
  • 怎么卸载nginx
  • 热门搜索
    浆糊的做法 麻婆豆腐的做法家常 酸辣肚丝汤的做法 鸡蛋面条的做法 美素佳儿奶粉怎么样 子宫肌瘤怎么形成的 低密度脂蛋白胆固醇偏高怎么回事 鱼干的做法大全 冬瓜炖排骨的做法 葱爆海参的做法