CentOS7 的yum update命令

在安装docker时,使用了yum update命令

 

yum update

升级所有包的同时也升级软件和系统内核

 

yum upgrade

只升级所有包,不升级软件和系统内核

 

更新完yum包,并安装完docker后。之前安装的mysql-proxy就无法启动了。

2020-08-09 20:31:04: (critical) plugin admin 0.8.5 started
2020-08-09 20:31:04: (critical) plugin proxy 0.8.5 started
2020-08-09 20:31:04: (debug) max open file-descriptors = 1024
2020-08-09 20:31:04: (message) admin-server listening on port :4041
2020-08-09 20:31:04: (message) proxy listening on port :4040
2020-08-09 20:31:04: (critical) getaddrinfo("10.13.7.185  # 内网的数据库地址,默认3306端口") failed: Name or service not known (-2)
2020-08-09 20:31:04: (critical) chassis-mainloop.c:270: applying config of plugin proxy failed
2020-08-09 20:31:04: (critical) mysql-proxy-cli.c:599: Failure from chassis_mainloop. Shutting down.
2020-08-09 20:31:04: (message) Initiating shutdown, requested from mysql-proxy-cli.c:600

在getaddrinfo时,解析失败,看了很长时间,感觉是这个方法把mysql-proxy.cnf文件里的,地址和后面的文字都作为地址来解析了,所以才失败。然后把“#内网的数据库地址,默认3306端口” 这段文字去掉,就能成功启动了。

你可能感兴趣的:(CentOS)