Connection Aliyun Database Redis version timeout problem __ Database

Source: Internet
Author: User
Tags redis redis version redis server aliyun
First, use Aliyun database redis version, extranet link Redis Server timeout problem
1. The Redis version of the cloud database does not support external network access. You must install RINETD in Aliyun server ECS for forwarding implementations.
2. To access Redis using the Aliyun server, you must change the classic network type in Redis to a professional network type (redis default classic network type)
3. The Aliyun server must be redis in the same area as the cloud database (for example, all North China 1), if two are not in the same area and cannot be accessed
Second, configure extranet access Redis database
1. Want to extranet access Redis must use Aliyun server (ECS) installation rinetd forwarding implementation (Aliyun document address: https://help.aliyun.com/document_detail/43850.html)
1). wget HTTP://WWW.BOUTELL.COM/RINETD/HTTP/RINETD.TAR.GZ&&TAR-XVF RINETD.TAR.GZ&&CD rinetd
Sed-i ' s/65536/65535/g ' rinetd.c (Modify port range)
Mkdir/usr/man&&make&&make Install
2). Open the configuration file rinetd.conf
Vi/etc/rinetd.conf
3). Enter the following in the configuration file
0.0.0.0 6379 Redis's link address 6379
Logfile/var/log/rinetd.log
4). Perform the following command to start
Rinetd
If you encounter a binding error, you can perform a pkill rinetd end process, and then execute the rinetd start process rinetd.
Rinetd after normal startup, perform NETSTAT-ANP | grep 6379 confirms that the service is operating correctly.
2. Test on the local server
1). Use Redis-cli-h (Configure forwarding ECS Server extranet IP)-a database password
2. Use Telnet link telnet 45.23.22.152 (Configure forwarding ECS server extranet IP) 6379 (port number)
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.