In the previous [Linux] Linux installation configuration Zookeeper/redis/solr/tomcat/ik A detailed example of a word breaker. We have copied the required tar package from Redis to the root directory under Linux, and then we just need to unzip it.
Copy the Redis tar package to the root directory under Linux first
Then unzip to the Redis folder: (use mkdir to create the Redis folder first)
The next step is to unpack the tar package into the Redis directory:
The directory structure after decompression:
Compiling: Using the Make command
Installation:
After installing the directory:
6379 directory structure: (This RDB file: Redis database, temporarily do not control it, restart automatically generated after)
Directory structure under Bin:
Configure background run: (Copy the redis.conf file under the redis-3.0.0 directory to the 6379 directory, using the CP command)
Edit redis.conf file (edit with vim command, modify daemonize to Yes, meaning support background run)
Start Redis Service: (Start and Stop commands)
Client Side Connection server: (if remote connection:./bin/redis-cli-h 192.168.200.128-p 6379)
Command Line Demo:
Add a sentence: Enter this 127.0.0.1:6379> edit mode, want to exit to normal mode, just use CTRL C, if you want to enter the Redis edit mode again, continue to use./bin/redis-cli.
So much for the installation and configuration of Redis.
[Linux] Installation and configuration of Redis under Linux.