一:安装haproxy 1:解压 编译 安装 tar zxf haproxy-1.7.9.tar.gz cd haproxy-1.7.9 uname -e make TARGET=linux2.6 PREFIX=/usr/local/haproxy make install PREFIX=/usr/local/haproxy 二:创建haproxy配置文件 mkdir /etc/haproxy cd /etc/haproxy/ vi haproxy.cfg ############
安装memcached服务,并启动添加数据 yum -y install memcached systemctl start memcached.service 启动 [root@python ~]# telnet 127.0.0.1 11211 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. set hello 0 0 5 world STORED get hello VALUE hello 0 5 w