CentOS6.3 compiler installation Redis method diagram

Source: Internet
Author: User
Tags memcached redis install redis redis server

Redis is a key-value storage system. Redis is an open source, support network, memory based, key value pair storage database, written using ANSI C. Similar to the memcached, but the biggest difference with memcached is that one is only temporarily cached, one can be permanently cached, at least my understanding is that ha. I have just begun to contact, I hope you friends to guide.
The following is to install Redis try,

Environment: CentOS release 6.3 (Final) +redis-2.8.10
Cd/usr/local/src
wget http://download.redis.io/releases/redis-2.8.10.tar.gz
Tar zxf redis-2.8.10.tar.gz
CD redis-2.8.10
Make && make install

The following is a partial configuration of the compile-time default make:

To copy the configuration file to the/etc directory, edit the configuration file vi/etc/redis.conf modify the following configuration

Modify Daemonize No to daemonize yes -------> The protection process runs
Modify dir./For dir/usr/local  -------> This is redis compile installation default directory
Modify AppendOnly No to AppendOnly yes  ---------> whether to log records after each update operation
start redis:redis-server/etc/redis.conf.
View Redis Health: lsof-n | grep redis or lsof-i:6379
The following figure, and so on, you can view the Redis health.

 


to this, Redis compilation installation is complete.
Simple test Redis server runs and shuts down has started automatically:
redis-cli set fucking you
redis-cli get Fu cking
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.