redis since the launch of the service set

1. Installation redis

tar -zxvf redis-2.8.6.tar.gz unpacked

cd-repeat 2.8.6

Make

Make install    object of the Redis generated redis-server redis- cli copied to the / usr / local / bin directory

 Benefits: You can Linux anywhere in the server to perform redis-server redis-cli

2. Installation ( I also performed this step)

Mkdir / etc / redis    placed Redis profile view: the Find Redis or ls / etc | grep redis

Mkdir / var / redis     placed Redis variables   pid process ID

Cp utils / redis_init_script /etc/init.d/redis util in / opt modifications /etc/init.d/redis

Head Add #chkconfig: 345 60 60 linux in need of self-service start in init.d

Chkconfig from start service command

Mkdir / var / redis / 6379

Pc redis.conf /etc/redis/6379.conf       

Vim /etc/redis/6379.conf

# Set daemonize yes

# Set pidfile to /var/run/redis_6379.pid

# Set logfile to /var/log/redis_6379.log

Chkconfig  --add redis

Chkconfig  redis  on

 

3. Start Close redis

Service redis start

Service redis stop

Guess you like

Origin www.cnblogs.com/zhulina-917/p/11746625.html