Linux installation Redis

Source: Internet
Author: User

One: Redis introduction      1: essentially key-value type memory database, where value can be string,list,set,sort Set, hash, and other types of data structures. Redis loads the entire data into memory, and periodically flush the database data to the hard disk with asynchronous operations. Because it is pure memory operation, Redis performance is excellent, processing more than 100,000 times per second read and write operations, is known to be the best performance Key-value type database.     2:redis has the following advantages:        2.1: Supports rich memory types such as String,list,set,sort Set, hash and other types of data structures.         2.2: Supports two types of data persistence: snapshotting (snapshot) append-only file (append)         2.3: Supports master-slave replication and nbsp; II: Redis installation     1: Installing Redis database         wget http://download.redis.io/releases/ redis-3.0.0.tar.gz        TAR-ZXVF redis-3.0.0.tar.gz        CD redis-3.0.0&nbsp ;       make         make install        CD utils/         ./install_server.sh   Use default installation configuration      Start Linux services:    cd/usr/local/bin& nbsp  ./redis-server/etc/redis/6379.conf to see if the service starts:    PS-EF | grep 6379 modifying Redis boot files      cd/etc/init.d/     ls | grep redis_6379    vi redis_6379 Change redis_6379 's name     MV redis_6379 Redis View redis Status: Service Redis status                        &NB Sp Service Redis restart using REDIS-CLI login:cd/usr/local/bin/                            ./redis-cli                      &NBSP ;     Set key 22                            Get KEY 2: Installing Phpredis modules     wget https://github.com/owlient/phpredis/archive/master.zip     MV Master master.zip    Unzip  master.zip    CD phpredis-master/   &nbsp ; ./configure–with-php-config=/usr/local/servers/phpredisReference: Http://www.redis.cn/redis Chinese official website references: http://my.oschina.net/xinxingegeya/blog/212348 Redis installation reference files: http://www . it163.org/post/699 Phpredis Installation

Linux installation 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.