1. Download and install: Cd/tmpwget http://redis.googlecode.com/files/redis-2.2.4.tar.gztar-zxf REDIS-2.2.4.TAR.GZCD Redis-2.2.4makesudo make install2. Configuring the init script: wget https://github.com/ijonas/dotfiles/raw/master/etc/init.d/redis-serverwget https://github.com/ Ijonas/dotfiles/raw/master/etc/redis.confsudo MV Redis-server/etc/init.d/redis-serversudo chmod +x/etc/init.d/ Redis-serversudo MV Redis.conf/etc/redis.conf3. Initialize user and log paths sudo useradd redissudo mkdir-p/var/lib/redissudo mkdir-p/var/log/redissudo chown Redis.redis/var/lib/redis sudo chown redis.redis/var/log/redis4. Start Redis:sudo/etc/init.d/redis-server start
Add a service
#sudo UPDATE-RC.D service name defaults
Delete a service
#sudo UPDATE-RC.D Service name Remove
temporarily restart a service
#/etc/init.d/Service Name Restart
temporarily shut down a service
#/etc/init.d/Service Name Stop
temporarily start a service
#/etc/init.d/Service Name start
Baidu Link
[Go] Install Redis under Ubuntu and start with the init script