当前位置:网站首页>20-09-27项目迁移到阿里折腾记录(网卡顺序导致服务无法通过haproxy连接到db)
20-09-27项目迁移到阿里折腾记录(网卡顺序导致服务无法通过haproxy连接到db)
2022-07-28 20:46:00 【5xp_2001】
无法连接数据库
telnet报错Connection closed by foreign host
telnet IP地址 端口
Trying IP地址...
Connected to IP地址.
Escape character is '^]'.
Y
5.5.5-10.1.33-MariaDBFv`\0v'[t!? W8Oc&3j?:F2fmysql_native_password
^CConnection closed by foreign host.
#注释 ip地址为负载地址 端口此报错提示已经连接上了 , 在haproxy向后telnet正常
修改mariadb haproxy配置
listen mariadb_writes_ZW245
bind 10.2.40.250:13304
mode tcp
- option tcp-check
- tcp-check expect string MySQL\ master
+ #option tcp-check
+ #tcp-check expect string MySQL\ master
# balance roundrobin
- default-server port 9200 inter 2s fall 3 rise 3 on-marked-down shut
+ #default-server port 9200 inter 2s fall 3 rise 3 on-marked-down shu
#server ZW-ZQWY-MySQL-01 10.9.38.250:13304
- server ZQWY-MySQL-01 10.2.40.245:3306 check
- server ZQWY-MySQL-02 10.2.40.246:3306 check backup
+ 边栏推荐
- 2021 mathematical modeling group B exercise
- 2021年数学建模B组代码
- Sword finger offer II 057. the difference between the value and the subscript is within the given range (medium array bucket sort sliding window TreeSet)
- ssh 免密码登录
- 笔试总结记录
- 32. Longest valid bracket (difficult stack string)
- HCIP(10)
- HCIP(12)
- Use webworker to perform background tasks
- [CS231N]Lecture_2:Image Classification pipelin
猜你喜欢

2021数学建模B组练习

Static route and default route experiment

Using Baidu easydl to realize chef hat recognition of bright kitchen and stove

Day3 classification management of Ruiji takeout project

示波器发展史中的变化

105. Construct binary tree from preorder and inorder traversal sequence (medium binary tree DFS hash table binary tree)

Changes in the history of oscilloscope development
![[LiteratureReview]Object Detection and Mapping with Bounding Box Constraints](/img/37/7cb5fa3a9078a5f5947485147c819d.png)
[LiteratureReview]Object Detection and Mapping with Bounding Box Constraints

Aimbetter insight into your database, DPM and APM solutions

If you want to grow rapidly, you must first experience a major blow!
随机推荐
tutorial/detailed_workflow.ipynb 量化金融Qlib库
[leetcode] maximum depth of binary tree
纪念一下第一次写的线段树了喽(对应洛谷3372)
SQL注入 Less38(堆叠注入)
网易云信 2022Q2 产品补给站,快来获取你的产品补给计划吧!
openresty 请求鉴权
If you want to grow rapidly, you must first experience a major blow!
Mysql内置函数
Embrace open source guidelines
Form validation and cascading drop-down lists (multiple implementations)
Hcip experiment (12)
记录Flutter解决A RenderFlex overflowed by 7.3 pixels on the bottom溢出问题
Sword finger offer II 065. The shortest word code (medium dictionary tree string array)
What are the main functions and uses of LCR tester
[Ruiji takeout project]day4 - dish management
Sword finger offer II 057. the difference between the value and the subscript is within the given range (medium array bucket sort sliding window TreeSet)
Changes in the history of oscilloscope development
How about the actual use effect of common source oscilloscope
hcip实验(15)
HCIP(11)