Installing Redis and Redis background running and clustering in Linux

Source: Internet
Author: User

1. Installing Redis

Weget http://download.redis.io/releases/redis-3.2.6.tar.gz

Unzip and move to a customized folder (/software/redis)

Unzip command TAR-ZXVF file name

Move command MV Current folder destination folder

Final structure:/software/redis/

2. Execute commands to the Redis directory

# make

# make Install

The default is/usr/local/bin/after installation is complete

The directory below can be seen

Redis-server and so on file, the installation is successful, this time can run to see if Redis can start normally

Enter the bin directory and start the command:./redis-server

The runtime is modifying the Redis configuration file

Vi/software/redis/redis-3.2.6/redis.conf

Bind 192.168.1.110 #本机ip

Daemonize Yes #后台运行配置

Run-time run by starting modified conf file

./redis-server/software/redis/redis-3.2.6/redis.conf

Add Redis Password

Configuration file

# Requirepass Foobared

Remove the comment and change it to a password

Requirepass 12345678

Save exit, restart Redis

Installing Redis and Redis background running and clustering in 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.