Redis installation under Linux (Redhat)

Source: Internet
Author: User
Tags redis version

Original: http://www.javaweb1024.com/data/NoSQL/2015/06/29/785.html

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.

Version: 3.0.2

: http://download.redis.io/releases/redis-3.0.2.tar.gz

After downloading, put it in the/home directory

[Email protected] home]# TAR-ZXVF redis-3.0.2.tar.gz

Attached: I changed the name default directory redis-3.0.2 to Redis

[[Email protected] home]# CD Redis

[[email protected] redis]# make

Boot Redis is not the same as the previous version, the Redis boot is placed under SRC

[Email protected] src]#./redis-server. /redis.conf

Appear

8169:m June 20:48:09.191 * Increased maximum number of open files to 10032 (it is originally set to 1024).

8169:m June 20:48:09.199 # warning:32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with ' noeviction ' policy now.

_._

_.-' __ '-._

_.-``    `.  `_. "-._ Redis 3.0.2 (00000000/0)

.-`` .-```. ' \ \ _.,_ '-._

(',.-' | ',) Running in standalone mode

| '-._ '-...-' __...-. '-._| '     ' _.-' | port:6379

|     '-._ '. _/_.-' | pid:8169

'-._ '-._ '-./_.-' _.-'

| '-._ '-._ '-.__.-' _.-' _.-' |

|           '-._ '-._ _.-' _.-' | Http://redis.io

'-._ '-._ '-.__.-' _.-' _.-'

| '-._ '-._ '-.__.-' _.-' _.-' |

| '-._ '-._ _.-' _.-' |

'-._ '-._ '-.__.-' _.-' _.-'

'-._ '-.__.-' _.-'

'-._ _.-'

'-.__.-'

8169:m June 20:48:09.199 # Server started, Redis version 3.0.2

8169:m June 20:48:09.200 # WARNING Overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ' vm.overcommit_memory = 1 ' to/etc/sysctl.conf and then reboot or run the command ' Sysctl vm.overcom Mit_memory=1 ' for the take effect.

8169:m June 20:48:09.200 # warning:the TCP Backlog setting of 511 cannot be enforced BECAUSE/PROC/SYS/NET/CORE/SOMAXCO NN is set to the lower value of 128.

8169:m June 20:48:09.200 * The server is now ready for accept connections on port 6379

8169:m June 21:03:10.091 * 1 changes in seconds. Saving ...

8169:m June 21:03:10.093 * Background saving started by PID 8311

8311:c June 21:03:10.111 * DB saved on disk

8311:c June 21:03:10.113 * rdb:0 MB of memory used by Copy-on-write

8169:m June 21:03:10.193 * Background saving terminated with success

Test

[Email protected] src]#./redis-cli

127.0.0.1:6379> set foo 1

Ok

127.0.0.1:6379> get foo

"1"

127.0.0.1:6379> TYPE foo

String

127.0.0.1:6379>

Indicates success

Redis installation under Linux (Redhat)

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.