How to access the Redis method on a virtual machine on a window

Source: Internet
Author: User
Tags redis server

1. First, to modify the Redis configuration file, locate the BIND node and modify the Bind node as follows:

  Bind means which IP address is bound to access the service, which means that Redis server can only be accessed through bind IP.

Ps:bind 127.0.0.1//Bind the virtual machine on its own IP, which means that the local computer can access the Redis server

Bind 0.0.0.0//All the machines can access to Redis server

Bind 192.168.1.253//This external machine can access the Redis server

2. Open Redis service port, that is, release 6379 port number on Linux

1. Open port number: iptables-a input-ptcp--dport Port number (6379)-j ACCEPT

2. Restart Refresh Port number:Service iptables Restart

  

How to access the Redis method on a virtual machine on a window

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.