Redis Database Rapid Deployment

Source: Internet
Author: User
Tags redis

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

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.