twemproxy Download
Https://github.com/twitter/twemproxy Installation Step 1, first view the current version
$rpm-qf/usr/bin/autoconf
2. If the version is below 2.64, you need to uninstall the following
3. Download and install the new version
$wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz
$tar zxvf autoconf-2.68.tar.gz
$CD autoconf-2.68
$./configure--prefix=/usr
$make && make install
4. See if the installation was successful
5. Download and install Twemproxy
wget https://github.com/twitter/twemproxy/archive/master.zip
Unzip master.zip
CD twemproxy-master/
$ cflags= "-ggdb3-o0" Autoreconf-fvi &&./configure--enable-debug=log && make && make Install
6. Check the installation
$ src/nutcracker-t The
installation is successful
nutcracker:configuration file ' conf/nutcracker.yml ' syntax is OK if the following prompt appears
7. Configure Nutcracker
CD conf/
VI nutcracker.yml
Alpha:
listen:127.0.0.1:22121
hash:fnv1a_64
Distribution:ketama
auto_eject_hosts:true
redis:true
server_retry_timeout:2000
server_failure_limit:1
servers:
- 127.0.0.1:6379:1 Server1
-127.0.0.1:6390:1 Server2
8. Start the Nutcracker service
$ mkdir Logs
$/usr/local/sbin/nutcracker-d-C nutcracker.yml-i 2000-o Logs/nutcracker.log
9.redis Connection Check
$redis-cli-p 22121