Installing Redis under Linux

Source: Internet
Author: User

First step: Install the plugin:

Yum-y Install CPP binutils glibc glibc-kernheaders glibc-common glibc-devel gcc make gcc-c++ libstdc++-devel tcl

Second step: Create the directory, upload the resource package decompression

Mkdir-p/usr/local/src/rediscd/usr/local/src/rediswget http://download.redis.io/releases/redis-2.8.17.tar.gz or RZ Upload TAR-XVF redis-2.8.17.tar.gz

Step three: Enter the directory, install

CD Redis-2.8.17makemake Install

Fourth Step: Modify the configuration file

CP redis.conf/etc/vi/etc/redis.conf# modified as follows, default is Nodaemonize Yes

Fifth step: Start Redis

Redis-server/etc/redis.conf

Sixth step: Test

Redis-cli

Input: Ping

Appears: Pong

Indicates the installation is complete!

Seventh Step: Open Redis Port number: 6379, let IT support remote access.

/sbin/iptables-i input-p TCP--dport 6379-j accept/sbin/iptables-i input-p tcp--dport 6379-j ACCEPT/ETC/RC.D/INIT.D /iptables Save

Get! Done!

This article is from the "Simple Life" blog, so be sure to keep this source http://simplelife.blog.51cto.com/9954761/1740137

Installing Redis under Linux

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.