First step: TAR-ZXVF redis-4.0.10.tar.gz
Part II: CD redis-4.0.10 directory perform make compilation
Result Error:
Reason: Need to rely on three packages
FIX: Install in sequence: Yum install gcc
Yum Install gcc-c++
Yum install TCL
Make and error after installation
Workaround: Execute make MALLOC=LIBC to solve the problem perfectly
Specific reference: 64920124
Step three: Create a directory called Redis for easy administration:
Perform the make install Prefix=/user/redis in the redis-4.0.10 directory
Part fourth: CP redis.conf. /redis
Redis is installed successfully
Start Redis:./redis-server reception Start
If you want to start the background, you can change the redis.conf configuration file daemon No to daemon Yes
The command is started at this time./redis-server. /redis-conf
If you want to remotely connect to Redis, you need to modify the redis.conf two places:
1. Note Bind= 127.0.0.1
2. Change Protected-mode Yes to Protected-mode no
Installing Redis trampled pits under Linux