Installation and configuration of the latest version of Redis Linux system

Source: Internet
Author: User

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 .
    • 1
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.