Download and install redis2.8.19 source code
$ wget http://download.redis.io/releases/redis-2.8.19. tar.gz$ tar xzf redis-2.8.19. tar.gz$ CD Redis -2.8.19$ make && make install
Use the command Src/redis-server if the initial installation is successful by displaying the following, then customize the configuration
_._ _.-``__"'-._ _.-`` `. `_."'-._ Redis 2.8.19 (00000000/0) 64bit.-`` .-```. ```\/ _.,_"'-._ ( ' , .-` | `, ) Running in stand alone mode|`-._`-...-` __...-.``-._|'` _.-'| port:6379 | `-._ `._ / _.-' | pid:15629`-._ `-._ `-./ _.-' _.-'|`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-'| /HTTPRedis.io '-._ `-._`-.__.-'_.-'_.-'|`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-'| `-._ `-._`-.__.-'_.-'_.-'`-._ `-.__.-' _.-' `-._ _.-'`-.__.-'
Enter $ cdutils execute $ sudo./install_server.sh
#以下配置是个人配置, not necessarily the same, personal like, full-use system default configuration also line Welcome to the Redis service Installerthis script would help you easily set up a running Redis Serverplease Select the Redis port forThis instance: [6379] #/redis default port used by selecting:6379Please select the redis config file name [/ETC/REDIS/6379.CONF]/etc/redis/redis.conf #配置文件Please Select the Redis log file name [/var/log/redis_6379.log]/var/log/redis/redis.log #日志文件Please Select the Data directory forThis instance [/var/lib/redis/6379] Selected Default-/var/lib/redis/6379Please select the Redis executable path [/usr/local/bin/redis-Server] #可执行文件Selected config:port:6379Config File:/etc/redis/redis.conflog File:/var/log/redis/redis.logdata dir:/var/lib/redis/6379executable:/usr/local/bin/redis-servercli Executable:/usr/local/bin/redis-Cliis this OK? Then press ENTER into go onorCtrl-c to abort.
copied/tmp/6379.conf =/etc/init.d/redis_6379
Installing service ...
Adding system Startup for/etc/init.d/redis_6379 ...
/etc/rc0.d/k20redis_6379. /init.d/redis_6379
/etc/rc1.d/k20redis_6379. /init.d/redis_6379
/etc/rc6.d/k20redis_6379. /init.d/redis_6379
/etc/rc2.d/s20redis_6379. /init.d/redis_6379
/etc/rc3.d/s20redis_6379. /init.d/redis_6379
/etc/rc4.d/s20redis_6379. /init.d/redis_6379
/etc/rc5.d/s20redis_6379. /init.d/redis_6379
success!
Starting Redis Server ...
installation successful!
At this point, after installation, Redis can be as easy to use as the Apt-get install
Start Service redis_6379 start stop $ service redis_6379 Stop restart service redis_6379 restart with Redis interaction $ redis-CLI
ubuntu14.04 Source Installation redis-2.8.19