Redis is a non-relational database based on Key-value. Here I will describe how Redis installs the configuration under CentOS 7.
Tools/Materials
Method/Step
Redis Source Code Acquisition
1. Get Redis's latest stable version on Redis website
2. Download the Redis source code via the wget command.
Redis compilation
1, through the TAR-XVF redis-3.0.2.tar.gz command decompression download Redis source compression package redis-3.0.2.tar.gz;
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.
Redis installation Configuration
1. Install Redis and execute make install. The executable file generated by make compilation is copied to the/usr/local/bin directory;
2. Execute./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);
END
Http://jingyan.baidu.com/article/6dad507510ea07a123e36e95.html
CentOS 7 Installation Configuration Redis database