当前位置:网站首页>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
+ 边栏推荐
- Tensorflow serving high performance machine learning model service system
- Mysql内置函数
- 【CVPR 2021】Cylinder3D:用于LiDAR点云分割的圆柱体非对称3D卷积网络
- What is the difference between inline elements and block level elements? Semantic function
- 想要快速成长,先要经历重大打击!
- HCIP(11)
- HCIP(9)
- HCIP(12)
- Jianzhi offer II 062. implement prefix tree (medium design dictionary tree prefix tree string)
- [CVPR 2021] cylinder3d: cylindrical asymmetric 3D convolution network for LIDAR point cloud segmentation
猜你喜欢

HCIP第七次实验

From Web3 to web2.5, is it backward or another way?

How about the actual use effect of common source oscilloscope

Lvs+keepalived high availability deployment practical application

(翻译)图技术简明历史

HCIP(15)

How to establish a decentralized community in Web3

If you want to grow rapidly, you must first experience a major blow!

SQL injection less34 (post wide byte injection + Boolean blind injection)

普源示波器实际的使用效果怎么样
随机推荐
How to realize dynamic route switching and route caching in vuejs
Sword finger offer II 056. Sum of two nodes in a binary search tree (simple binary search tree DFS hash table double pointer iterator)
HCIP(15)
HCIP(8)
SQL injection less42 (post stack injection)
使用webWorker执行后台任务
Chapter 7: drawing rotating cubes
Sword finger offer II 063. replacement word (medium prefix tree string)
MOV格式是不是静态图像文件格式
2021数学建模B组练习
What is a prime factor? In number theory, a prime factor (prime factor or prime factor) refers to a prime number that can divide a given positive integer
[Ruiji takeout project] Day5 - Chapter 6 mobile verification code login
Tensorflow serving high performance machine learning model service system
SQL injection less34 (post wide byte injection + Boolean blind injection)
网易云信 2022Q2 产品补给站,快来获取你的产品补给计划吧!
40. Combined sum II
Lvs+keepalived high availability deployment practical application
Sword finger offer II 055. Binary search tree iterator (medium binary search tree iterator)
Aimbetter insight into your database, DPM and APM solutions
Brief introduction to PCB materials