nginx第三方模块安装方法:
./configure --prefix=/你的安装目录 --add-module=/第三方模块目录
以安装fair模块实例
下载fair安装包并解压
1、在未安装nginx的情况下安装nginx第三方模块
# ./configure --prefix=/usr/local/nginx-1.9.9 --add-module=/temp/nginx-upstream-fair-master # make # make isntall # /usr/local/nginx-1.9.9/sbin/nginx
2、在已安装nginx情况下安装nginx模块
# ./configure --prefix=/usr/local/nginx-1.9.9 --add-module=/temp/nginx-upstream-fair-master # make # /usr/local/nginx-1.9.9/sbin/nginx -s stop # cp objs/nginx /usr/local/nginx/sbin/nginx # /usr/local/nginx-1.9.9/sbin/nginx
时间: 2024-10-09 23:19:38