1. Upload the Redis installation package
Using the WINSCP visualization tool, upload the redis.2.8.19.tar.gz installation package in the Windows environment to the Linux of the virtual machine.
2. View uploaded files
3. Extract to current directory
TAR-ZXVF redis-2.8.19.tar.gz extract to current directory
4. Into the decompression directory compile make, compile. c into executable. o file
5. Install to the specified directory
[Root@www redis-2.8.19]# make Prefix=/usr/local/redis Install
6. Copy redis.conf to specified directory
[Root@www redis-2.8.19]# CP redis.conf/usr/local/redis/
There is no redis.conf under the installation path
Go to the original compilation directory to find redis.conf
7. Start Redis
Enter the installation directory/usr/local/redis/bin there are several executable files
redis-benchmark--Performance test Tool reids-check-aof--Check repair aof files appendonly file log file, data persistence redis-check-dump--Check snapshot persistence file redis-cli- -Command line client Redis-server--redis Server startup command
Start:
[Root@www redis]# Bin/redis-server
The port number is: 6379