1.
Chinese Civil Service Network: http://www.redis.cn/download.html
British Civil Service Network: Http://www.redis.io/download
Inside the content of the same, is one is written in Chinese, one is written in English
Redis Command Reference official website: http://redisdoc.com/
Installation environment is SentOS-7
I am using redis-3.0.4, then TAR-ZXVF redis-3.0.4.tar.gz decompression, as follows:
2.
The Redis directory is as follows, where I copy the redis.conf to the new my_redis_conf directory,
Modify the redis.conf in the future is modified my_redis_conf directory, the original is not moved, so if the correct change is not afraid
3.
In the Redis directory, enter make for installation, and the GCC tool is required for installation (if you do not have GCC, you need to install GCC first).
If there is no error in the middle, it is installed.
The installed files are/usr/local/bin/by default:
Redis-server is a Redis service-enabled
REDIS-CLI is the one that opens the Redis client
REDIS-CHECK-AOF Check the aof file for errors, if there are non-compliant statements, will be automatically purged (equivalent to repairing the aof file)
Redis-check-dump Check the dump file for errors, if there are non-compliant statements, will be automatically cleared (equivalent to repairing the dump file)
4.
Now go to the backup directory, modify the redis.conf, the default port is 6379 (mysql default is 3306)
5. Start Redis below
Redis-server redis.conf turn on Redis service
Redis-cli-p 6379 Connect to Redis's 6379 port, turn on client
Shutdown Turn off Redis service
Exit Close Client
View the Redis process
For the redis.conf parameter configuration, you can refer to this comrade's:
Http://blog.sina.com.cn/s/blog_636415010101970j.html
Installation of Redis