Installation of Redis under Linux

Source: Internet
Author: User
Tags install redis

Redis is one of the most popular NoSQL systems today, and it is a key-value storage system. Similar to memcached, but largely compensates for the lack of memcached, which supports storing more value types, including string, list, set, Zset, and hash. These data types support Push/pop, Add/remove, and intersection sets and differences, and richer operations. Based on this, Redis supports sorting in a variety of different ways. Redis data is cached in the computer's memory and periodically writes the updated data to disk or writes the modification to the appended record file.

Redis website Address: http://www.redis.io/

Latest Version: 2.8.3

It is very easy to install Redis under Linux, as described in the following steps (official website):

1, download the source code, unzip and compile the source code.

Make

2, after the completion of the compilation, in the SRC directory, the configuration file corresponding to redis.conf, change the configuration file, modify the startup mode for the background process, if necessary to modify the corresponding port number, the default is 6732;

# By default, Redis does not run as a daemon. Use the ' yes ' if you need it.
# Note that Redis would write a PID file in/var/run/redis.pid when daemonized.
Daemonize Yes

# when running daemonized, Redis writes a PID file in/var/run/redis.pid by
# Default. You can specify a custom PID file from here.
Pidfile/var/run/redis.pid

# Accept connections on the specified port, default is 6379.
# If Port 0 is specified Redis would not listen on a TCP socket.
Port 9999

3. Start Redis service.

$./src/redis-server   redis.conf

4, then use the client to test whether to start successfully.

./src/redis-cli-h host-p Portredis> set foo barokredis> get foo "bar"

Installation of Redis under 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.