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 $?  (查看上一次执行命令的返回结果)

     

     

     

     

     

  • 相关阅读:
    高德地图的使用点标记、折线标记
    vue 过滤器filter(全面)
    vue cli4.0 快速搭建项目详解
    vue cli3.0快速搭建项目详解(强烈推荐)
    路由传参的三种方法
    router-link 返回上页 和 新窗口打开链接
    Django REST framework+Vue 打造生鲜超市(一)
    Android笔记:波纹按钮
    简单更换博客园背景
    SUID,SGID和SBIT
  • 原文地址:https://www.cnblogs.com/sseban/p/11743495.html
Copyright © 2011-2022 走看看