Linux installation Redis Zookeeper

Source: Internet
Author: User
Tags zookeeper install redis

To install Redis:

Prerequisites for Installation:

Need to install the Gcc:yum install gcc-c++

wget http://download.redis.io/releases/redis-3.2.8.tar.gztar-zxvf redis-3.2. 8 . TAR.GZCD Redis-3.2. 8 #安装目录make Install PREFIX=/usr/local/Redis If prompt make is invalid requires installation of GCC installation complete

Copy the configuration file redis.conf to the installation directory

Modifying a configuration file

daemonize Yes background boot

Requirepass redis setup password for Redis

Start

[Email protected] bin]#/redis-server redis.conf

Installing zookeeper

Before installing the JDK to install a little

wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz  -zxvf zookeeper-3.3. 6 . tar.gz   CD Zookeeper-3.3. 6/conf  copy zoo_samle.cfg for ZOO.CFGCP  zoo_samle.cfg Zoo.cfgvi zoo.cfg
# of milliseconds of each tickticktime= -# The number of ticks that the initial # synchronization phase can takeinitlimit=Ten# The number of ticks that can pass between # Sending a request and getting an acknowledgementsynclimit=5# The DirectorywhereThe snapshot isStored.datadir=/mnt/disk/word/children/zookeeper-3.3.6/Datadatalogdir=/mnt/disk/word/children/zookeeper-3.3.6/logs# the port at which the clients would connectclientport=2181

Setting environment variables

Vi/etc/profile

#zookeeperexport zookeeper_home=/mnt/disk/word/children/zookeeper-3.3. 6 export PATH= $PATH: $ZOOKEEPER _home/bin

Make environment variables effective

Source/etc/profile

Boot, can be started anywhere

[[email protected] conf]# zkserver.sh start

Complete

Linux installation Redis Zookeeper

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.