CentOS 6.9 under Twemproxy construction

Source: Internet
Author: User
Tags redis zip centos
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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.