The Java client is not linked to the Redis solution

Source: Internet
Author: User
Tags ip number

A problem description appears:
1.Could not get a resource from the pool, Connection refused:connect

Windows Java side Client link is rejected, think about the problem

1.Vmware Linux installed Redis has started normally
2. In Windows with SSH Client link Linux can operate Redis
3.linux Firewall is off
4. The IP of Linux can also be spelled through

Supposedly, it should be okay, use Telnet to test the lower port.

192.168. 0.104 6379

The discovery port could not be linu, but the other ports can be spelled through, which means Redis itself is configured.

Looked under the configuration file, found that the configuration file is bound to the local IP, this configuration will cause the other IP login is rejected, so we commented it out

The next test run, sent first has been linked, the problem solved, but there are new problems: DENIED Redis is running in protected mode because protected mode is enabled ...

The problem is that Redis is currently in protected mode, does not allow non-local client links, we can set a password to Redis, and then the client link, the time to write a password can be resolved

Commands for configuring Redis
Config set Requirepass 123->123 is the password

Now the Java client configures the host IP number, the password can be linked to the

The Java client is not linked to the Redis solution

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.