首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

HAProxy代理MySQL Cluster集群安装

安装代理接口 1.检查操作系统版本和内核版本 lsb_release  操作系统 ********************************** LSB Version:    :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch  Distributor ID: RedHatEnterpriseServer  Description:    Red Hat Enterprise Linux Server release 5.4 (Tikanga)  Release:        5.4  Codename:      Tikanga  **********************************  uname -r    内核版本 ********************************** 2.6.18-164.el5  **********************************  2.安装代理接口  在线代理下载HAproxy 1.5.9版本  安装步骤  (1)tar xzvf haproxy-1.5.9.tar.gz  **********************************  haproxy-1.5.9/  haproxy-1.5.9/.gitignore  haproxy-1.5.9/CHANGELOG  haproxy-1.5.9/LICENSE  haproxy-1.5.9/Makefile  haproxy-1.5.9/README  haproxy-1.5.9/ROADMAP  haproxy-1.5.9/SUBVERS  haproxy-1.5.9/VERDATE  haproxy-1.5.9/VERSION  haproxy-1.5.9/contrib/  ......  haproxy-1.5.9/tests/test_hashes.c  haproxy-1.5.9/tests/test_pools.c  haproxy-1.5.9/tests/testinet.c  haproxy-1.5.9/tests/uri_hash.c  *****************************************************  (2)针对内核版本进行安装  安装前先要看看内核的版本,我这里是2.6.18  make TARGET=linux26 PREFIX=/usr/local/hapropxy  make install PREFIX=/usr/local/haproxy  (3)设置配置文件 cd /usr/local/haproxy  vi haproxy.cfg  *****************************************************  ###########全局配置#########  global    log 127.0.0.1  local0 #[日志输出配置,所有日志都记录在本机,通过local0输出]    log 127.0.0.1  local1 notice  #定义haproxy 日志级别[error warringinfo debug]    daemon      #以后台形式运行harpoxy    #nbproc 1  #设置进程数量    pidfile /usr/local/haproxy/haproxy.pid  #haproxy 进程PID文件    #ulimit-n 819200  #ulimit 的数量限制    maxconn 4096    #默认最大连接数,需考虑ulimit-n限制    chroot /usr/local/haproxy  #chroot运行路径    uid 99                    #运行haproxy 用户 UID    gid 99                    #运行haproxy 用户组gid    #debug      #haproxy 调试级别,建议只在开启单进程的时候调试    #quiet   ########默认配置############  defaults        log global          mode http              #默认的模式mode { tcp|http|health },tcp是4层,http是7层,health只会返回OK          #option  httplog        #日

01
领券