With the continuous development of web2.0, NoSQL databases are constantly appearing, and in NoSQL it makes up for a single type of memcache only hash, which supports string (string), list (linked list), set (set) in Redis, Zset (sorted set--ordered set) and hash (hash type), which makes Redis more powerful than memcache, and Redis is implemented in C, deployment is very simple, here briefly, Redis's official website is: https:// Redis.io, it is recommended to use the latest stable version
[[email protected] src]# mkdir /usr/local/redis[[email protected] src]# Wget http://download.redis.io/releases/redis-3.2.8.tar.gz[[email protected] src]# tar -zxvf redis-3.2.8.tar.gz -c /usr/local/redis[[email protected] src]# cd /usr/local/redis/[[email protected] redis]# mv redis-3.2.8/* ./;rm -rf redis-3.2.8/[[email protected] redis]# make && make test# It is important to note that if you configure this redis will not start with the daemon process and therefore make the appropriate modifications [[email protected] redis]# make install# This will default to the binary files placed in the/usr/local/bin/in order to regulate the corresponding adjustment [[email protected] redis]# mkdir bin/[[email Protected] redis]# mv /usr/local/bin/* bin/[[email protected] redis]# cp utils/redis_init_script /etc/init.d/redis# Copy startup script [[email protected] redis]# vim /etc/init.d/redis#!/bin/sh## simple redis init.d script conceived to work on linux systems# as it does use of the /proc filesystem.# chkconfig: 2345 64 36redisport=6379exec=/usr/local/redis/bin/redis-servercliexec=/usr/local/redis/bin/redis-clipidfile=/var/run/ redis_${redisport}.pidconf= "/usr/local/redis/redis.conf" ... Slightly... [[email protected] redis]# vim redis.conf# Open Daemon ... A little ... daemonize yes ... Slightly... [[Email protected] redis]# vim /etc/profile.d/redis.shexport path= $PATH:/usr/local/ redis/bin[[email protected] redis]# source /etc/profile.d/redis.sh
This allows Redis to be deployed in a very simple way.
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/8F/13/wKiom1jSoy3ikAZJAAAgrEGRY9Q192.png-wh_500x0-wm_ 3-wmp_4-s_3012584707.png "title=" Redis.png "alt=" Wkiom1jsoy3ikazjaaagregry9q192.png-wh_50 "/>
This article from "Technical essay" blog, declined reprint!
Redis Database Rapid Deployment