Compile and install the latest version of Redis Stable
Currently, REDIS has been upgraded to 3.0.5 as the most stable version, but many system sources are not updated. Therefore, compile and install REDIS here.
Suitable for all systems
# Wget
# Tar xvf redis-stable
# Cd redis-stable
# Make
# Make install
Configure after installation
# Cd utils
#./Install_server.sh
The configuration is as follows:
Port 6379
Configuration path:/etc/redis. conf
Data storage path:/var/lib/redis/
Registration Service: redis-server
Welcome to the redis service installer
This script will help you easily set up a running redis server
Please select the redis port for this instance: [6379]
Selecting default: 6379
Please select the redis config file name [/etc/redis/6379. conf]/etc/redis. conf
Please select the redis log file name [/var/log/redis_62.16.log]
Selected default-/var/log/redis_62.16.log
Please select the data directory for this instance [/var/lib/apsaradb for redis/6379]/var/lib/apsaradb for redis/
Please select the redis executable path [/usr/local/bin/redis-server]
Selected config:
Port: 6379
Config file:/etc/redis. conf
Log file:/var/log/redis_62.16.log
Data dir:/var/lib/redis/
Executable:/usr/local/bin/redis-server
Cli Executable:/usr/local/bin/redis-cli
Is this OK? Then press ENTER to go on or Ctrl-C to abort.
Copied/tmp/6379. conf =>/etc/init. d/redis_6379
Installing service...
Insserv: warning: script 'k01redis 'missing LSB tags
Insserv: warning: script 'redis 'missing LSB tags
Insserv: warning: script 'haproxy' missing LSB tags
Insserv: Default-Start undefined, assuming default start runlevel (s) for script 'haproxy'
Insserv: Service network is missed in the runlevels 4 to use service redis_6379
Redis_6379 0: off 1: off 2: on 3: on 4: on 5: on 6: off
Successfully added to chkconfig!
Insserv: warning: script 'k01redis 'missing LSB tags
Insserv: warning: script 'redis 'missing LSB tags
Insserv: warning: script 'haproxy' missing LSB tags
Insserv: Default-Start undefined, assuming default start runlevel (s) for script 'haproxy'
Insserv: warning: script 'k01redis 'missing LSB tags
Insserv: warning: script 'redis 'missing LSB tags
Insserv: warning: script 'haproxy' missing LSB tags
Insserv: Default-Start undefined, assuming default start runlevel (s) for script 'haproxy'
Insserv: Service network is missed in the runlevels 4 to use service redis_6379
Successfully addedto runlevels 345!
Starting Redis server...
Installation successful!
Register redis as a redis-server Service
# Mv/etc/init. d/redis {_ 6379,-server}
Test:
# Service redis-server restart
Starting Redis server...
# Redis-cli-v
Redis-cli 3.0.5
# Redis-cli PING
PONG
Compile and install the latest version of Redis Stable.
You may also like the following articles about Redis. For details, refer:
Install and test Redis in Ubuntu 14.04
Basic configuration of Redis master-slave Replication
Redis cluster details
Install Redis in Ubuntu 12.10 (graphic explanation) + Jedis to connect to Redis
Redis series-installation, deployment, and maintenance
Install Redis in CentOS 6.3
Learning notes on Redis installation and deployment
Redis. conf
Redis details: click here
Redis: click here
This article permanently updates the link address: