码迷,mamicode.com
首页 > 其他好文 > 详细

haproxy

时间:2015-09-29 14:55:26      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:haproxy

  cd haproxy-1.5.10/

  make TARGET=linux26 ARCH=x86_64

  make install

  mkdir /etc/haproxy

  cp examples/haproxy.cfg /etc/haproxy

  cp examples/haproxy.init /etc/init.d/haproxy

  chmod +x /etc/init.d/haproxy

  ln -s /usr/local/sbin/haproxy /usr/sbin/

  mkdir /usr/share/haproxy

  vim /etc/haproxy/haproxy.cfg

  cp /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg.new

  mkdir /etc/haproxy/error

添加haproxy日志信息:

vi /etc/rsyslog.conf

local0.* /var/log/haproxy.log

/etc/init.d/rsyslog restart


keepalived安装:

  unzip prce-8.36.zip

  unzip pcre-8.36.zip

  cd pcre-8.36

  ./configure && make &&make install

  cd

  cd keepalived-1.2.15/

  ls

  ./configure 

  make

  make install

  cd

  mkdir /etc/keepalived/

 

  cp /usr/local/etc/rc.d/init.d/keepalived /etc/rc.d/init.d/

  cp /usr/local/etc/sysconfig/keepalived /etc/sysconfig/

  cp /usr/local/sbin/keepalived /usr/sbin/

cp /root/keepalived-1.2.15/keepalived/etc/init.d/keepalived.sysconfig /etc/sysconfig/keepalived


/etc/init.d/keepalived restart




haproxy

标签:haproxy

原文地址:http://3367005.blog.51cto.com/3357005/1699102

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!