Redis is a very, very easy to use database cache, in the need to save regularly updated Token value, or to ensure the safety and reliability of high concurrency scenarios, basically it says is a must use.
Redis installed many times, and also used the Ali cloud Redis database, but each still need to search the information, or a little below summarize the installation process, next time do not go check up. . .
Download extracting installer
wget http://download.redis.io/releases/redis-2.8.17.tar.gz
takes -xzvf Redis-2.8.17.tar.gz
cd repeat-2.8.17
make
There are conventional for the above is OK, but will go wrong
For example: / bin / sh: cc: command not found the problem, you need to install something.
sudo yum -y install gcc gcc-c++ libstdc++-devel
make MALLOC=libc
In general, the problem has been solved, the installation was successful
Into the src directory, there are redis-server, redis-cli commands
run
./redis-server
This start-up mode is activated the front desk, if redis need to keep running in the background, then you need to add settings.
force redis.conf
The daemonize no change daemonize yes
Into the src directory and run the command using redis-server ../redis.conf
Codeword is not easy, if that helps, be sure to give me some praise yo ~ ~
Otherwise, believe it or not I smashed your house lights, midnight kiss you steal (¯ε ¯) !!!