zoukankan      html  css  js  c++  java
  • nginx负载均衡第三方健康监测模块

    1.查看nginx当前版本

    [root@slb nginx]# nginx -v

    nginx version: nginx/1.16.1

     

    安装依赖:

    [root@slb nginx]# yum install -y gcc glibc gcc-c++ pcre-devel openssl-devel pcre-devel patch

     

    下载第三方健康监测模块

     

    [root@slb ~]# wget http://nginx.org/download/nginx-1.14.1.tar.gz

     

    [root@slb ~]# ll

    总用量 1200

    -rw-r--r-- 1 root root  173791 10月 26 14:40 master.zip

    -rw-r--r-- 1 root root 1032630 8月  14 01:01 nginx-1.16.1.tar.gz

     

    [root@slb ~]# tar xf nginx-1.16.1.tar.gz 

    [root@slb ~]# unzip master.zip 

     

    进入nginx目录,打补丁(nginx的版本是1.14补丁就选择1.14的,p1代表在nginx目录,p0是不在nginx目录)

     

    [root@slb ~]# cd nginx-1.14.1

    [root@slb nginx-1.14.1]# ls

    auto  CHANGES  CHANGES.ru  conf  configure  contrib  html  LICENSE  man  README  src

     

    [root@slb nginx-1.14.2]# patch -p1 <../nginx_upstream_check_module-master/check_1.14.0+.patch

     

    [root@slb nginx-1.14.2]# ./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --add-module=/root/nginx_upstream_check_module-master --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -pie'

     

    [root@slb nginx-1.14.2]# echo $?  (查看上一次执行命令的返回结果)

     

     

     

     

     

  • 相关阅读:
    day 66 ORM django 简介
    day 65 HTTP协议 Web框架的原理 服务器程序和应用程序
    jQuery的事件绑定和解绑 事件委托 轮播实现 jQuery的ajax jQuery补充
    background 超链接导航栏案例 定位
    继承性和层叠性 权重 盒模型 padding(内边距) border(边框) margin 标准文档流 块级元素和行内元素
    属性选择器 伪类选择器 伪元素选择器 浮动
    css的导入方式 基础选择器 高级选择器
    03-body标签中相关标签
    Java使用内存映射实现大文件的上传
    正则表达式
  • 原文地址:https://www.cnblogs.com/sseban/p/11743495.html
Copyright © 2011-2022 走看看