Cenos Installing Redis

Source: Internet
Author: User
Tags benchmark gz file redis version

Environment: Centos 6.2

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/

1. Download the file

Http://download.redis.io/releases/redis-2.8.3.tar.gz

redis-2.8.3.tar.gz file download successful after uploading to/usr/local

2. Installation

[Email protected] local]# Mkdir/usr/local/redis

[Email protected] local]#tar xzf redis-2.8.3.tar.gz

[Email protected] local]#CD redis-2.8.3

[[email protected] redis-2.8.3]# make

3, after the completion of the compilation, in the SRC directory, there are three executable files Redis-server, Redis-benchmark, Redis-cli. And then copy it to a directory.

[[email protected] redis-2.8.3]# CD src

[Email protected] src]# CP Redis-server/usr/local/redis
[Email protected] src]# CP Redis-benchmark/usr/local/redis
[Email protected] src]# CP Redis-cli/usr/local/redis

4, start the Server service

[[email protected] src]# cd/usr/local/redis
[[email protected] redis]# ll
Total 13688
-rwxr-xr-x. 1 root root 4156999 Jan 1 23:26 redis-benchmark
-rwxr-xr-x. 1 root root 4229443 Jan 1 23:27 redis-cli
-rwxr-xr-x. 1 Root root 5627506 Jan 1 23:26 Redis-server

[[email protected] redis]# ./redis-server
[4445] Jan 23:28:56.519 # warning:no config fi Le specified, using the default Config. In order to specify a config file use./redis-server/path/to/redis.conf
[4445] Jan 23:28:56.520 * Max number of Ope n Files set to 10032
_._
_.-' __ '-._
_.-'. ' _. '-._ Redis 2.8.3 (00000000/0) '.-'.-'. '. '-'. '/_.,_ '-._
(',.-' | ',) Running in stand alone mode | '-._ '-...-' __...-. '-._| ' ' _.-' | port:6379
| '-._ '. _/_.-' | pid:4445
'-._ '-._ '-./_.-' _.-'
| '-._ '-._ '-.__.-' _.-' _.-' |
| '-._ '-._ _.-' _.-' | http://redis.io
'-._ '-._ '-.__.-' _.-' _.-'
| '-._ '-._ '-.__.-' _.-' _.-' |
| '-._ '-._ _.-' _.-' |
'-._ '-._ '-.__.-' _.-' _.-'
'-._ '-.__.-' _.-'
'-._ _.-'
'-.__.-'

[4445] Jan 23:28:56.543 # Server started, Redis version 2.8.3
[4445] 23:28:56.544 # 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.
[4445] 23:28:56.544 * The server is now a ready-to-accept connections on port 6379

5, then use the client to test whether to start successfully . ( open another terminal to run, Redis client )

[Email protected] redis]# Cd/usr/local/redis

[Email protected] redis]# ./REDIS-CLI
127.0.0.1:6379> set foo bar
Ok
127.0.0.1:6379> get foo
"Bar"
127.0.0.1:6379>

Cenos Installing Redis

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.