Installing the configuration Redis

Source: Internet
Author: User

1. Cd/usr/ley/softwares
2. wget http://download.redis.io/redis-stable.tar.gz
3. Tar–xzf redis-stable.tar.gz
4. CD redis-stable
5. Make
6. Make Install
7.
8. Mkdir/etc/redis
9. Mkdir/var/redis
10.CP Utils/redis_init_script/etc/init.d/redis
11.vim/etc/init.d/redis
A. Add content to your head
B. #chkconfig: 345 60 60
C. #!/bin/bash
12.mkdir/var/redis/6379
13.CP redis.conf/etc/redis/6379.conf
14.vim/etc/redis/6379.conf
A. Daemonize = yes
B. pidfile =/var/run/redis_6379.pid
C. logfile =/var/log/redis_6379.log
D. dir =/var/redis/6379
15.SYSCTL Vm.overcommit_memory=1//redis Official statement
16.chkconfig--add Redis
17.chkconfig Redis on
18.service Redis Start
19.service Redis Stop

Installing the configuration Redis

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.