Redis supports stand-alone and cluster , the following steps are stand-alone installation steps
redis3.0.0 version of the installation package Baidu cloud link:
Link: https: //pan.baidu.com/s/1mb_SdU5hHlrmUkWN7Drx0g
extraction code: jz9r
- # yum install -y gcc-c++
1.1 Because it is c written language , so you need to install supporting components
- The archive uploaded to the linux server
2.1 Example location : / usr / local / temp / lower
- # cd /usr/local/temp
# tar zxvf redis-3.0.6.tar.gz
3.1 into the / usr / local / temp RUN command unzip
- # make
4.1 directory is compiled into the decompression
- # make install PREFIX=/usr/local/redis
5.1 Installation , set installation path / usr / local / redis under
5.2 into src next installation
- # ./redis-server
6.1 front end started , can not perform other operations after installation
6.2 Ctrl + c to exit
6.3 command to the bin to the next directory
7. # cp /usr/local/temp/redis-3.0.6/redis.conf /usr/local/redis/bin
7.1 copy the configuration file to extract the installation directory under the directory bin under
8. # force redis.conf
8.1 modify the bin under redis.conf
8.2 Ba daemonize made no modifications to yes, the daemon start
Start command: redis-server redis.conf
9. # ps aux | grep repeat
9.1 View redis start case
10.# ./redis-cli shutdown
10.1 If you want to turn off , run the above command , does not run close to
11. # ./redis-cli
11.1 into the native client tools , test redis is available
12 # set name ‘smallming’
12.1 Adding a string, key for the name, value is smallming
set name ‘smallming’
13# get name
13.1 removed name contents