Upload the redis-2.8.23.tar.gz package to CentOS and place it on a directory
Perform a tar zxvf redis-2.8.23.tar.gz for decompression
After decompression, go to unzip directory:
Enter SRC directory
CD src
Perform make to compile
Execute after compilation is complete
Back Up Redis
Verify that Redis is starting successfully:
Executed under the SCR directory
Set Test 1
Get test
If the result is as follows, start successfully:
Project Description:
Project partial configuration values are added to the cache Redis, so the project uses Redis, and in order to fit the upgrade and unknown people, a new configuration item profile in the project configuration file is:
Redis.properties
redis.host=172.19.11.16
redis.port=6379
redis.maxidle=300
redis.maxactive=600
redis.maxwait=1000
Redis.testonborrow=true
Redis.start=yes
These few configuration items as long as modify redis.host and redis.start other several can regardless,
Redis.host is configured with the server on which Redis resides. Redis.start=yes is saying the project starts Redis as a cache if you fill in another value, it means that Redis is not enabled.
Note If Redis is enabled, you must install Redis if no Redis does not turn on using the redis switch, otherwise it will affect performance This switch is turned off by default.
Installing Redis under Linux