Ubuntu source code installation redis-2.8.19, redis2.8.19 installation Configuration
Download the source code for installing redis2.8.19
$ 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
If the command src/redis-server is displayed as follows, it indicates that the initial installation is successful. Next, you can customize the configuration.
_._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 2.8.19 (00000000/0) 64 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in stand alone mode |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | `-._ `._ / _.-' | PID: 15629 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-'
Go to $ cd utils and run $ sudo./install_server.sh.
# The following configurations are personal configurations, which are not necessarily the same, all the default configurations of the system are also available. Welcome to the redis service installerThis script will help you easily set up a running redis serverPlease select the redis port for this instance: [6379] #/default port Selecting default: 6379 Please select the redis config file name [/etc/redis/6379. conf]/etc/redis. conf # configuration file Please select the redis log file name [/var/log/redis_62.16.log]/var/log/redis . Log # log File Please select the data directory for this instance [/var/lib/redis/6379] Selected default-/var/lib/redis/6379 Please select the redis executable path [/usr/local/bin/redis-server] # the executable file Selected config: port: 6379 Config file:/etc/redis. confLog file:/var/log/redis. logData dir:/var/lib/redis/6379 Executable:/usr/local/bin/redis-serverCli Executable:/usr/local/bin/redi S-cliIs this OK? Then press ENTER to go on or Ctrl-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!
Now, after the installation, redis can be used as conveniently as apt-get install.
Start $ service redis_6379 start stop $ service redis_6379 stop restart $ service redis_6379 restart interacts with redis $ redis-cli