Detailed steps for Redis installation under CentOS 6.5

Source: Internet
Author: User
Tags redis version

About Redis:
Redis is an open source API that is written in ANSI C, supports the web, can be persisted in memory, key-value databases, and provides multiple languages. From March 15, 2010 onwards, the development work of Redis is hosted by VMware.
Redis is a key-value storage system. Similar to memcached, it supports storing more value types, including string (string), list (linked list), set (set), Zset (sorted set– ordered collection), and hash (hash type). These data types support Push/pop, Add/remove, and intersection-set and difference sets, and richer operations, and these operations are atomic. Based on this, Redis supports sorting in a variety of different ways. As with memcached, data is cached in memory to ensure efficiency. The difference is that Redis periodically writes the updated data to disk or writes the modified operation to the appended record file, and Master-slave (Master-Slave) synchronization is implemented on this basis.
Installation Environment:
CentOS 6.5
Redis 2.8.13
Download the installation:
Download the file to the/opt/directory
wget http://download.redis.io/releases/redis-3.2.1.tar.gz
Unzip the file
Tar zxvf redis-2.8.13.tar.gz
Switch directories to the redis-2.8.13 directory
CD redis-2.8.13
Execute make command, output from the last few rows
Hint:to run ' make test ' was a good idea
MAKE[1]: Leaving directory '/OPT/REDIS-2.8.13/SRC '
Execute the Install command
Make install
Tips:
CD src && make install
MAKE[1]: Entering directory '/OPT/REDIS-2.8.13/SRC '

Hint:to run ' make test ' was a good idea

Install Install
Install Install
Install Install
Install Install
Install Install
MAKE[1]: Leaving directory '/OPT/REDIS-2.8.13/SRC '
Follow the prompts to execute: CD src && make install
Tips:
Hint:to run ' make test ' was a good idea

Install Install
Install Install
Install Install
Install Install
INSTALL instal
Follow the prompts: Make Test
Tips:
You need TCL 8.5 or newer in order to run the Redis test
Make: * * * [Test] Error 1
Workaround reference: http://www.linuxfromscratch.org/blfs/view/cvs/general/tcl.html
can also be used: Yum install TCL command installation
Later, the search found that no installation required, directly to the SRC directory execution./redis-server can

You can use a similar./redis-server/path/to/redis.conf command to specify the configuration file;
Server started, Redis version 2.8.13
The server is now a ready-to-accept connections on port 6379
The service started successfully and the service has been listening for connection requests on port 6379.
You can use the built-in client connection redis:http://www.redis.cn/download.html

After installation, start the file
#启动redis
Src/redis-server &

Src/redis-server redis.conf &

#关闭redis
SRC/REDIS-CLI shutdown

$ src/redis-cli
Redis> set Foo Bar
Ok
Redis> get foo
"Bar"
Precautions:
To access it remotely, you also need to turn on defense.
Do not use CTRL + C, which causes the program to exit.


[Email protected]:~/workspace/redis2.6.13/src$ make test
You need TCL 8.5 or newer in order to run the Redis test
Make: * * * [Test] Error 1
[HTML] View plain copy

1.wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz
2.sudo tar xzvf tcl8.6.1-src.tar.gz-c/usr/local/
3.cd/usr/local/tcl8.6.1/unix/
4.sudo./configure
5.sudo make
6.sudo make Install

(GO) CentOS 6.5 Redis installation Detailed steps

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.