CentOS6.5 install Redis3.0 stable Edition

Source: Internet
Author: User

CentOS6.5 install Redis3.0 stable Edition

1: Download

wget http://download.redis.io/releases/redis-3.0.0.tar.gz

2: Extract

tar zxvf redis-3.0.0.tar.gz

3: Enter the decompressed Redis folder and execute make compilation (gcc is required)

4: the installation is successful at this time, and the next step is to start Redis3.0.

Src/redis-server src in the decompressed Redis folder

5: Redis3.0 is started successfully! However, Redis cannot execute other commands after running, so you need to run Redis in the background. Open a new command window to stop Redis.

src/redis-cli shutdown

6. modify the configuration daemonize of redis. conf to yes.

vim redis.conf

7: START Redis again

Src/redis-server redis. conf so that the configuration file will take effect

8: it is not convenient to start Redis. You need to enter the Redis folder to start the execution file. So after executing step 3 make, it is best to run the make install command directly after compilation to copy these executable programs to the/usr/local/bin directory so that you do not need to enter the complete path when executing the program in the future.

It doesn't matter if you haven't executed Step 3. Now, go to the Redis folder and directly execute make install (use root permission) sudo make install

9: At this time, Redis executable programs are in the/usr/local/bin directory, so you can run them directly.

It is best to copy redis. conf to the root directory and run the Redis command reids-server./redis. conf in the background.

10: Redis is successfully installed. After the Redis service process is started, you can use the redis-cli client to interact with the redis service.

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.