Install and configure Redis2.6.14 in CentOS

Source: Internet
Author: User
Redis is an open-source, network-supported, memory-based, key-Value Pair storage database written using ANSIC. Its development is hosted by VMware. Ranking websites by monthly DB-Engi

Redis is an open-source, network-supported, memory-based, key-Value Pair storage database written in ansi c. Its development is hosted by VMware. Ranking websites by monthly DB-Engi

Redis is an open-source, network-supported, memory-based, key-Value Pair storage database written in ansi c. Its development is hosted by VMware. Redis is the most popular key-Value Pair storage database, according to the data of the monthly ranking website DB-Engines.com.

Refer:

Install and configure Redis 2.2.14 in CentOS

Official redis Website:

I. redis Server installation and configuration
# Tar xf redis-2.6.14.tar.gz
# Cd redis-2.6.14
# Make
# Make install
# Cp redis. conf/etc/

1.2 modify the redis. conf configuration file
# Vim/etc/redis. conf

# Run as a daemon
# Change daemonize no to daemonize yes
# Change dir./to an absolute path,
./Redis # change to/usr/local/
# Modify appendonly to yes


# Specify whether to record logs after each update operation,

Change appendonly no to appendonly yes
1.2 start redis

#/Usr/local/bin/redis-server/etc/redis. conf

1.3 check whether redis has been started

12 # ps-ef | grep redis
# Netstat-tnlp | grep redis

1.4 add redis to auto-start

# Echo "/usr/local/bin/redis-server/etc/redis. conf">/etc/rc. local

Ii. install and configure the phpredis extension module
Php-redis client: https://codeload.github.com/nicolasff/phpredis/zip/master
2.1 install and configure
# Unzip phpredis-master.zip
# Cd phpredis-master
#/Usr/local/php/bin/phpize
#./Configure -- with-php-config =/usr/local/php/bin/php-config
# Make
# Make install

2.2 After the make install command is executed
# Installing shared extensions:/usr/local/php // lib/php/extensions/no-debug-non-zts-20060613/
2.3 modify php. ini

Vi/usr/local/php/etc/php. ini

Find extension_dir and change it
Extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613 /"
# Add redis. so to the last line of the php configuration file
Extension = redis. so

2.4 restart apache

# Service httpd restart

2.5 check whether the redis module is loaded.
# Php-m | grep redis

Recommended reading:

Install Redis in Ubuntu 12.10 (graphic explanation) + Jedis to connect to Redis

Redis series-installation, deployment, and maintenance

Install Redis in CentOS 6.3

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.