(ii) Redis installation and configuration (1)

Source: Internet
Author: User

Installation

Redis installation is very convenient, first through the official website to download the latest version, website address:http://redis.io/download

Redis can also be installed on windows in addition to being installed on Linux , but Redis on Windows platforms is not a redis Officially supported, it was developed and maintained by the Microsoftopen Tech team.

Redis does not rely on any non-standard databases, nor does it compile the parameters that must be added, and the installation is straightforward. We use the 3.0 version here.

Install the basic Environment first:

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/82/F1/wKioL1dmlMOQZCgxAAA12Ye7ejk770.jpg-wh_500x0-wm_3 -wmp_4-s_4017678969.jpg "title=" 1.jpg "alt=" Wkiol1dmlmoqzcgxaaa12ye7ejk770.jpg-wh_50 "/>

download from here:http://download.redis.io/releases/redis-3.0.7.tar.gz

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/82/F2/wKiom1dmlNPDaHc1AADWVergcW4285.jpg-wh_500x0-wm_3 -wmp_4-s_212862735.jpg "title=" 2.jpg "alt=" Wkiom1dmlnpdahc1aadwvergcw4285.jpg-wh_50 "/>

unzip and test the required conditions, which are the commands in the zip package, prompting you to install tcl8.5 or later

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/82/F1/wKioL1dmlNzx-mx9AAAzWUF1exs829.jpg-wh_500x0-wm_3 -wmp_4-s_882239072.jpg "title=" 3.jpg "alt=" Wkiol1dmlnzx-mx9aaazwuf1exs829.jpg-wh_50 "/>

Installing TCL

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/82/F2/wKiom1dmlPKAJUQQAABQvoUe-7w835.jpg-wh_500x0-wm_3 -wmp_4-s_43198842.jpg "title=" 4.jpg "alt=" Wkiom1dmlpkajuqqaabqvoue-7w835.jpg-wh_50 "/>

Install The jemalloc allocator , the source of the dispenser is already included in the Redis source code package, in the dev directory, such as: about the dispenser after I do the instructions.

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/82/F1/wKioL1dmlQDTQbBFAAA5OTtC3sE043.jpg-wh_500x0-wm_3 -wmp_4-s_3724467207.jpg "title=" 5.jpg "alt=" Wkiol1dmlqdtqbbfaaa5ottc3se043.jpg-wh_50 "/>

The installation is as follows: it will compile and install the following 4 items, which are all dependent on Redis

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/82/F1/wKioL1dmlQqSuOTCAABCJZ9Qerw170.jpg-wh_500x0-wm_3 -wmp_4-s_3446371343.jpg "title=" 6.jpg "alt=" Wkiol1dmlqqsuotcaabcjz9qerw170.jpg-wh_50 "/>

Compiling the installation Redis

run make again at this time without an error. You can set the installation directory by using make prefix=, I use the default here.

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/82/F2/wKiom1dmlRKz0l1aAAB-6xBeVPk153.jpg-wh_500x0-wm_3 -wmp_4-s_3010598803.jpg "title=" 7.jpg "alt=" Wkiom1dmlrkz0l1aaab-6xbevpk153.jpg-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/82/F2/wKiom1dmlRrTlLAHAADFTtqDqCs973.jpg-wh_500x0-wm_3 -wmp_4-s_2157249588.jpg "title=" 8.jpg "alt=" Wkiom1dmlrrtllahaadfttqdqcs973.jpg-wh_50 "/>

Run Makeinstall

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/82/F1/wKioL1dmlSThRUEdAACARQimfQg591.jpg-wh_500x0-wm_3 -wmp_4-s_766218229.jpg "title=" 9.jpg "alt=" Wkiol1dmlsthruedaacarqimfqg591.jpg-wh_50 "/>


Post-installation program and configuration file location:

after installation, the default The Redis program is placed under/usr/local/bin , such as:

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/82/F1/wKioL1dmlm2RBqjuAAA9eVr6Xsc876.jpg-wh_500x0-wm_3 -wmp_4-s_4269748657.jpg "title=" 1.jpg "alt=" Wkiol1dmlm2rbqjuaaa9evr6xsc876.jpg-wh_50 "/>

Program NameUse the Daemon Launcher REDIS-CLI command-line tool for the Redis-serverredis server, and of course you can use Telnet to manipulate the database Redis-benchmark Performance test tool, Test the Read and write performance of Redis under current system and hardware configuration redis-check-aof used to fix problems with aof files redis-check-dump to fix problematic Dump.rdb files redis-sentinel user cluster Management

Configuration file location in the source package, the installation does not copy the configuration file and requires a manual copy of the configuration file. The operation is as follows:

Create a folder named Redis under/etc/, which is also for easy management

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/82/F2/wKiom1dml6bxWgqyAAFUbludRaE870.jpg-wh_500x0-wm_3 -wmp_4-s_2880636903.jpg "title=" 2.jpg "alt=" Wkiom1dml6bxwgqyaafubludrae870.jpg-wh_50 "/>

here to change the configuration file to a noun, change to 6379.conf, why? Because it is related to the CONF of this variable in the startup script, it defaults to Redisport, which is the name of the configuration file, as shown in the next section.

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/82/F1/wKioL1dml7CANWTmAAAmg-IYlJA080.jpg-wh_500x0-wm_3 -wmp_4-s_3856849189.jpg "title=" 3.jpg "alt=" Wkiol1dml7canwtmaaamg-iylja080.jpg-wh_50 "/>

Not to be continued ....

This article is from the "Little Demon's Home" blog, so be sure to keep this source http://littledevil.blog.51cto.com/9445436/1790865

(ii) Redis installation and configuration (1)

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.