Use and configuration of Redis

Source: Internet
Author: User
Tags file copy

Redis startup and management in a Linux environment

Command under the Redis root directory

Quick Start default port./redis-server. /redis.conf

Start the Redis management side./redis-cli

Cleanup Cache Command Flushall

Configure additional Redis ports :

1, the bin directory redis.conf file copy more than one, the file name to increase the port number, good mark, such as redis6380.conf

2. Open edit the file, change bind 127.0.0.1 to bind 192.168..123; change port 6379 to Port 6380

3. Start the port./redis-server. /redis6380.conf

4. Start the management port./redis-cli-h 192.168.1.123-p 6380

Using CMD to manage Redis under Windows environment

Enter the Redis root directory and execute the following command

Start Redis service Redis-server.exe redis.windows.conf

Turn on Redis client redis-cli.exe-h 192.168.0.186-p 6379

Redis.conf Related Configurations

comment out the phrase "bind local IP",

Set the protection mode Protected-mode to No (if enabled, the client that enters Redis from another computer will prompt for protected mode)

Set the daemonize to Yes (background running after startup, that is, the Redis boot interface will not appear, and the current remote will be turned on.)

Use and configuration of 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.