Installing Redis on Linux

Source: Internet
Author: User

Redisredis Installing on Linux
    1. Uploading redis-3.0.7.tar.gz to a Linux virtual machine
    2. Compile:

A) because Redis is a C language development, you need to compile first, build on Linux needs to rely on the GCC environment, if you do not install GCC environment, need to install GCC: Execute command: Yum install gcc-c++

Redis data types

b) Create a Redis directory (mkdir Redis) in/usr/local and copy redis-3.0.7.tar.gz to this directory (Cy/root/redis-3.0.7.tar.gz/usr/local/redis) for decompression (TAR–XVF redis-3.0.7.tar.gz), enter the folder after decompression (CD redis-3.0.7), if not executed permissions must first add permissions (chmod +x redis-3.0.7.tar.gz) compile (make), to install ( Make Prefix=/usr/local/redis install) specified in the Redis directory before us

c) Go to the bin directory, run Redis (./redis-server), and if you want to use it, you cannot close

d) Create a new connection to open the client (./redis-cli)

e) test

f) After testing no problem, then configure Linux under the background to start Redis (can close the window) into the extracted directory redis-3.0.7, the directory under the redis.conf copy to, the installation folder under the Bin directory

g) Modify permissions (chmod 777 redis.conf)

h) Modify daemonize in configuration file redis.conf default to no set to Yes, save and exit

i) querying whether Redis starts Ps-aux | grep Redis

Installing Redis on Linux

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.