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