1. Download Redis:
wget http://download.redis.io/releases/redis-3.2.9.tar.gz
If you are prompted that the wget command does not exist, you will need to install wget, as follows:
Yum Install wget Yum Install Perl
2, Decompression:
tar zxvf redis-3.2. 9. tar. gz
3. Enter the unpacked folder and compile:
CD redis-3.2. 9 Make
Make install
If the compilation error, prompt: gcc command not found, because GCC is not installed, the installation method is as follows:
Yum Install GCC Yum Install GCC Yum Install Make
If the report: Error:jemalloc/jemalloc.h:no such file or directory, see: Redis installation Error error:jemalloc/jemalloc.h:no such file or direct Ory Workaround
4, modify the configuration:
VI redis.conf
If you need to enable permission validation, search for "Requirepass", remove "# Requirepass foobared" Before the pound, and replace foobared for your password
If you need to enable remote login for Redis, see: Redis on-access
5. Start:
Redis-server redis.conf &
Reference:
Http://www.cnblogs.com/sandea/p/5782192.html
Http://www.cnblogs.com/silent2012/p/3499654.html
Redis installation and use under Linux