I have never used redis before. Considering the storage of regional e-commerce inventory data, I plan to use redis for inventory management. Installing redis is relatively simple, and configuring redis will be slightly copied. This post will simply record the installation process.
1. Download the redis file
[root@redis2 ~]# wget http://download.redis.io/releases/redis-2.8.12.tar.gz
2. Unzip, compile, start
[root@redis2~]# tar xzf redis-2.8.12.tar.gz [root@redis2~]# cd redis-2.8.12 [root@redis2 redis-2.8.12]# make [root@redis2 redis-2.8.12]# src/redis-server
3. Start a new SSH, test
[root@redis2 redis-2.8.12]# src/redis-cli 127.0.0.1:6379> set name yiwugou OK 127.0.0.1:6379> get name "yiwugou" 127.0.0.1:6379>