[Linux] Installation and configuration of Redis under Linux.

Source: Internet
Author: User

In the previous [Linux] Linux installation configuration Zookeeper/redis/solr/tomcat/ik A detailed example of a word breaker. We have copied the required tar package from Redis to the root directory under Linux, and then we just need to unzip it.

Copy the Redis tar package to the root directory under Linux first


Then unzip to the Redis folder: (use mkdir to create the Redis folder first)


The next step is to unpack the tar package into the Redis directory:

The directory structure after decompression:


Compiling: Using the Make command

Installation:


After installing the directory:


6379 directory structure: (This RDB file: Redis database, temporarily do not control it, restart automatically generated after)


Directory structure under Bin:


Configure background run: (Copy the redis.conf file under the redis-3.0.0 directory to the 6379 directory, using the CP command)


Edit redis.conf file (edit with vim command, modify daemonize to Yes, meaning support background run)


Start Redis Service: (Start and Stop commands)

Client Side Connection server: (if remote connection:./bin/redis-cli-h 192.168.200.128-p 6379)

Command Line Demo:


Add a sentence: Enter this 127.0.0.1:6379> edit mode, want to exit to normal mode, just use CTRL C, if you want to enter the Redis edit mode again, continue to use./bin/redis-cli.
So much for the installation and configuration of Redis.

[Linux] Installation and configuration of 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.