当前位置:网站首页>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
+ 边栏推荐
- What does GPRS network mean
- 乌官员:乌克兰一半农产品经多瑙河港口出口
- 75. Color classification (medium array double pointer sorting)
- LCR测试仪最为主要的功能和用途都是什么
- Bugku, Web: all filtered
- Sword finger offer II 063. replacement word (medium prefix tree string)
- 网易云信 2022Q2 产品补给站,快来获取你的产品补给计划吧!
- How to establish a decentralized community in Web3
- Static route and default route experiment
- SQL injection less42 (post stack injection)
猜你喜欢

Can the MySQL create statement be used to create a table structure and append new records
![[NLP] generate word cloud](/img/c4/4e9707bba58732a90d1c30312719a3.png)
[NLP] generate word cloud

Desai wisdom number - line chart (stacking area chart): ranking of deposits of different occupational groups in the proportion of monthly income in 2022

Intranet penetration learning (III) horizontal movement of domain - planning tasks

SQL注入 Less42(POST型堆叠注入)
![[machine learning] naive Bayesian classification of text -- Classification of people's names and countries](/img/95/1f5b0a17a00da5473180667ccc33e2.png)
[machine learning] naive Bayesian classification of text -- Classification of people's names and countries

Changes in the history of oscilloscope development

Record the fluent to solve the problem of a renderflex overflowed by 7.3 pixels on the bottom

CDN工作原理

How to establish a decentralized community in Web3
随机推荐
From Web3 to web2.5, is it backward or another way?
[LiteratureReview]Object Detection and Mapping with Bounding Box Constraints
Excel-VBA 快速上手(十三、日期的常见用法)
gprs网络指的是什么
Changes in the history of oscilloscope development
Soft exam network engineer
Sword finger offer II 055. Binary search tree iterator (medium binary search tree iterator)
The difference between get and post
HCIP(14)
[binary tree] pseudo palindrome path in binary tree
HCIP第七次实验
Lotus 1.16.0 extend sector expiration time
Add DNS server to LAN for domain name resolution
Sword finger offer II 054. Sum of all values greater than or equal to nodes (medium binary search tree DFS)
局域网添加DNS服务器进行域名解析
Sword finger offer II 052. flatten binary search tree (simple binary search tree DFS)
hcip实验(12)
2021数学建模B组练习
HCIP(8)
What is the difference between inline elements and block level elements? Semantic function