1.redis Downloads
Website address: Https://redis.io/download
Baidu Cloud Address: Link: Http://pan.baidu.com/s/1c1Hu2gK Password: h17z
2. Unzip
[root@MiWiFi-R3-srv local]# tar -zxvf ~/redis-4.0.2.tar.gz -C .
3. Installation
[Root@MiWiFi-r3-srvLocal# yum install-y gcc-c++[root @MiWiFi-r3-srv local]# cd redis-4.0.2/[root @MiWiFi-r3-srv Redis-4.0. 2]# make[root @MiWiFi-r3-srv redis- 4.0.2]# make install PREFIX=/usr/ Local/redis[root @MiWiFi-r3-srv redis-4.0. 2]# cp redis.conf/usr/local/redis/bin/[root @MiWiFi-r3-srv Redis-4.0. 2]# cd/usr/local/redis/bin/
4. Configure redis-conf
[root@MiWiFi-R3-srv bin]# vim redis.conf
Modify the following (set up background running Redis):
yes
Set any address to access Redis
bind 0.0.0.0
5. Start Redis
[root@MiWiFi-R3-srv bin]# ./redis-server redis.conf
6. Set up boot from boot
[root@MiWiFi-R3-srv bin]# vim /etc/rc.local
Add the following at the end of the rc.local file:
/usr/local/redis/bin/redis-server /usr/local/redis/bin/redis.conf
7. Test 1.1 shows the following message stating that the server started successfully:
[Root@MiWiFi-r3-srv bin]# PS Aux|grep redisroot27130.10.4 145260 7536? SSL 12:57 0: 00/usr/local/redis/bin/redis-server 127.0.0. 1:6379root 2811 0.0 0. 0 112668 964 pts/0 S+ 12:58 0:00 grep--color=auto redis
1.2 Testing the Client connection
Server-side return Pong instructions for successful connection
[[email protected]R3-srv bin]# ./redis-cli 127.0.0.1:6379> pingPONG127.0.0.1:6379>
At this point, the installation and configuration of REDIS is complete!!!
Installation and configuration of the latest version of Redis Linux system