1, the installation package reids a file in a folder linux system
2, unzip the file to a folder
tar -zxvf redis-3.0.0.tar.gz -C /usr/local/redis
3, the directory after the files are decompressed on the inside of the files are compiled and installed
Used here compiled and installed simultaneously
make install PREFIX=/usr/local/redis
/ Usr / local / redis redis is the installation path, the directory name is not sure to call redis can define their own
4, enter the installation directory redis to view the files inside
cd usr/local/redis/bin
Which is redis redis-server file startup file
5, start redis
redis bin file in the installation directory folder enter the command: ./ redis-server
The following screen appears on the installation is successful
6, will run as a background redis
Copy redis.conf redis extract the directory file in the directory to the bin installation directory redis
cp /usr/local/redis/redis-3.0.0/redis.conf /usr/local/redis/bin
force redis.conf
Setting: daemonize yes (probably in line 37) (This command refers to, redis can serve as a background process, the default is no)
7. Restart redis
./redis-server redis.conf
8, connected to the server through a client
./redis-cli