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