1. Download and install
wget http://download.redis.io/releases/redis-4.0.11.tar.gz-zxvf redis-4.0.11. tar.gz CD Redis-4.0.11 make cd src//usr/local//usr/local//usr/local/ Redis installation complete ....
2. Front-Start
cd/usr/local/Redis. /redis-server
3. Background boot
Modify configuration file redis.conf daemonize no //No to change to Yes
./redis-Server redis.conf
-A | grep redis 21595? 00:00:00 Redis-server
4. Client Operations
[[email protected] redis]#./redis-127.0.0.1:6379>127.0.0.1:6379> get name" Xiaoming "
5.redis-cli remote shutdown redis-server
Redis-cli-h 127.0.0.1-p 6379 shutdown
6. Set the password
Modify Redis.conf
Requirepass Password
. /redis-cli-h 127.0.0.1-p 6379-a Password
Startup error:
Warning:the TCP Backlog setting of 511 cannot be enforced because/proc/sys/net/core/somaxconn are set to the lower value of. Workaround:add net.core.somaxconn= 1024x768-P to the ETC/sysctl.conf fileto permanently eliminate this warning
This script.
WORKAROUND: # yum install m4# yum install autoconf
Installing Redis under Linux