First step: Download Redis package Http://redis.io/download
The second step: Create the appropriate folder, and through the xftp and other tools to copy the compressed package to the new folder, and extract
1 . Create folder # mkdir zookeeper 2 . Copy the tool over here 3 -zxvf redis-4.0. 2. tar.gz
Step three: Compiling Redis
1 Enter the Unpacked folder # CD Redis-4.0. 2 2 . Execute make to compile the Redis uncompressed file # made 3 . Go to the SRC folder and perform the make install for Redis installation # CD src# made install
Fourth step: Modify the Redis.conf file (the file by default in the extracted directory, if necessary, you can create a new conf directory and copy it, easy to start)
A. Modifying the auth password
B. Turn on background boot (if not, the Redis service will terminate when the terminal exits CTRL + C)
Daemonize Change No to Yes
Fifth step: Start the Redis service
#./redis-server. /redis.conf
You need to bring the configuration file when you start, otherwise the default startup, password and background run will not take effect (this is the same as under the Windows system, you need to bring the corresponding configuration file)
Sixth step: Check if it starts up
# Ps-ef|grep Redis
Or
# Netstat-tunpl|grep 6379
Add: Of course, you can also use REDIS-CLI to log in and see if the success
Redis Linux Configuration Redis (single point)