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