Redis installation tutorial, redis tutorial
Redis is one of the most popular NOSQL databases. The following describes the installation process of redis:
1. installation environment Introduction:
Redis edition: redis-3.0.1
Linux: Red Hat Enterprise Linux Workstation release 7.0 (Maipo)
2. download the required Redis File
Download the latest stable version in the http://redis.io. The download is redis-3.0.1.tar.gz.
3. Put the downloaded file into the Linux System
Connect the xftptool in xmanagerto the corresponding machine and put redis-3.0.1.tar.gz in the/redis folder, for example:
4. decompress and compile the compressed file
Unzip: tar zxvf redis-3.0.1.tar.gz
Compile: make
5. Start the redis Server
Switch to the src directory and start the server through./redis-server/redis/redis-3.0.1/redis. conf
6. Verify that the server is successfully started.
Connect to the client through./redis-cli-h 192.168.161.252-p 6379, and set related values to verify whether the server is successfully started.
7. Other related commands
View redis related threads: ps-ef | grep redis
Disable the redis service:./redis-cli-h 192.168.153.138-p 6379
View redis information:./redis-cli-h 192.168.153.138-p 6379 info
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.