Download the Redis source code via the wget command
wget http://download.redis.io/releases/redis-3.2.6.tar.gz
1, through the TAR-XVF redis-3.0.2.tar.gz command decompression download Redis source compression package redis-3.0.2.tar.gz;
Before compiling, remember to install GCC first
Yum Install GCC
2, compile Redis. Access to the Redis source directory via CD redis-3.0.2/, perform make to compile Redis;
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.
Installing Redis, performing the Make install
Perform./utils/install_server.sh After configuring Redis configuration, Redis can boot with the system.
Redis service View, open, close
1, through the Ps-ef|grep redis command to view the Redis process;
2, open Redis service operation through/etc/init.d/redis_6379 Start command, also can pass (service redis_6379 start);
3. Turn off Redis service operation via/etc/init.d/redis_6379 Stop command, also available via (service redis_6379 stop);
This article is from the "I am the program my biggest" blog, please be sure to keep this source http://skinglzw.blog.51cto.com/10729606/1885564
CentOS 6.8 Installation Redis