One, zookeeper
1, Download Zookeeper
[[email protected] Download]# wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.11/zookeeper-3.4.11.tar.gz
Note:-bash:wget: Command not found
Install the wget command first: [[email protected] ~]# yum-y install wget
2, Unzip zookeeper
[[email protected] deploy]# tar-zxvf/home/lk/download/zookeeper-3.3.6.tar.gz
After extracting, you will get a zookeeper-3.4.11 folder under the Deploy folder.
3, about zookeeper configuration file, after decompression zookeeper-3.4.11 folder conf zoo_sample.cfg copy is zoo.cfg, modify zoo.cfg can change the configuration of zookeeper.
4, start: [[email protected] bin]#./zkserver.sh start
Two, Redis
Download Redis
$ wget http://download.redis.io/releases/redis-2.8.17.tar.gz$ tar xzf redis-2.8. 17.tar. gz$ CD Redis-2.8. $ make
When make is reported to GCC: command error not found:
Solution Solutions
First ensure that the root login, if the $ identity is a normal user login, #表示是root用户, switch to the root user command input Su, enter, enter the password return, and then install the installation command: yum-y install gcc automake autoconf Libtool make
Install, try to compile and run Redis again
If the installation of GCC in the make process still reported missing package or what error recommended to delete the extracted files re-decompression, the problem is all resolved
After make the redis-2.8.17 directory will appear after the compiled Redis service program Redis-server, as well as the client program for testing REDIS-CLI, two programs located in the installation directory SRC directory:
Start the Redis service below.
./Redis-server
Note this way of starting Redis is using the default configuration. You can also tell Redis to start with the following command using the specified configuration file through the startup parameters.
./Redis-server Redis. conf
Redis.conf is a default configuration file. We can use our own configuration files as needed.
Once the Redis service process is started, you can use the test client program REDIS-CLI to interact with the Redis service. Like what:
./Redis-cliredis>set foo barokredis>get foo"Bar"
Install zookeeper and Redis under Linux, get a look?