Centos6.7 Source Installation Redis

Source: Internet
Author: User



Centos6.7 Source Installation Redis

Demo Environment

System: Linux CentOS 6.7 64-bit

Account Number: Root

Environment: No Redis installed

Official website Download redis3.0.7 This is the latest version of the current

http://www.redis.cn/

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7F/47/wKiom1cYgzST0QCRAACl6CS-Vv4807.png "style=" float: none; "title=" Image002.png "alt=" Wkiom1cygzst0qcraacl6cs-vv4807.png "/>

First, go to the downloaded Redis directory.

[email protected]]# tar XF redis-3.0.7.tar.gz// Unpack the Tarball

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7F/45/wKioL1cYg_bhUi74AAAe7h_MlMg062.png "style=" float: none; "title=" Image003.png "alt=" Wkiol1cyg_bhui74aaae7h_mlmg062.png "/>

into the extracted directory, execute Make compile, note the system must be installed before compiling GCC software package, otherwise compile the time will be error.

[[Email protected]]# make

Note: After the make command finishes compiling, 6 executables are generated in the SRC directory, namely Redis-server, REDIS-CLI, Redis-benchmark, redis-check-aof, Redis-check-dump, Redis-sentinel.

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7F/47/wKiom1cYgzXCa0lSAABbXfmkgxQ422.png "style=" float: none; "title=" Image004.png "alt=" Wkiom1cygzxca0lsaabbxfmkgxq422.png "/>

Installing Redis

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7F/47/wKiom1cYgzbTz6u2AAArVGb0704759.png "style=" float: none; "title=" Image006.png "alt=" Wkiom1cygzbtz6u2aaarvgb0704759.png "/>

Execute./utils/install_server.sh after configuring Redis configuration Redis can boot with system

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7F/47/wKiom1cYgzbSfwDDAAA2mx0bDIQ136.png "style=" float: none; "title=" Image007.png "alt=" Wkiom1cygzbsfwddaaa2mx0bdiq136.png "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7F/47/wKiom1cYgzfjja8bAABWd6-Ii9w193.png "style=" float: none; "title=" Image008.png "alt=" Wkiom1cygzfjja8baabwd6-ii9w193.png "/>

I use the system default port, the name of the startup script, which can be changed according to their own needs.

Redis the startup and shutdown

The Redis service operation is enabled via the/etc/init.d/redis_6379 Start command, which can also be passed (serviceredis_6379 start);

The Redis service operation is turned off via the/etc/init.d/redis_6379 Stop command, which can also be passed (serviceredis_6379 stop);


This article is from the "Jiaao" blog, make sure to keep this source http://jiaao.blog.51cto.com/10894904/1766264

Centos6.7 Source Installation Redis

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.