配置了mysql-mmm后,tomcat连接数据库时,写的是虚拟ip还是实际ip
答案:2 悬赏:0 手机版
解决时间 2021-02-16 03:14
- 提问者网友:佞臣
- 2021-02-15 14:19
配置了mysql-mmm后,tomcat连接数据库时,写的是虚拟ip还是实际ip
最佳答案
- 五星知识达人网友:佘樂
- 2021-02-15 15:45
配置了mysql-mmm后,tomcat连接数据库时,写的是虚拟ip还是实际ip
mmm_agent.conf
include mmm_common.conf
# include 包含了mmm_common.conf配置文件的内容
# The 'this' variable refers to this server. Proper operation requires
# that 'this' server (db1 by default), as well as all other servers, have the
# proper IP addresses set in mmm_common.conf.
this db1
# this 指定了当前主机为db1
mmm_common.conf
active_master_role writer
# One should set read-only=1 in the configuration of all MySQL servers,
# MMM will change that to read-only=0 on the host with the active_master_role.
# 设置写角色的时候,会执行set global read_only = 0;
cluster_interface eth0
# network interface on which the IPs of the roles should be configured
# 配置的网络接口,注意不能指定为子接口,例如eth0:0
agent_port 9989
# Port on which mmm_agentd listens
# mmm_agentd的监听端口,默认为9989
mysql_port 3306
# Port on which mysqld is listening
# 监听的mysql端口,默认3306
pid_path /var/run/mysql-mmm/mmm_agentd.pid
# Location of pid-file
# pid文件位置,如果配置cluster模式,需要增加cluster标识.
bin_path /usr/libexec/mysql-mmm/
# Path to directory containing MMM binaries
# mmm执行文件路径,注意:2.0版本和2.1版本的路径不一样.
replication_user replication
replication_password XXX
mmm_agent.conf
include mmm_common.conf
# include 包含了mmm_common.conf配置文件的内容
# The 'this' variable refers to this server. Proper operation requires
# that 'this' server (db1 by default), as well as all other servers, have the
# proper IP addresses set in mmm_common.conf.
this db1
# this 指定了当前主机为db1
mmm_common.conf
active_master_role writer
# One should set read-only=1 in the configuration of all MySQL servers,
# MMM will change that to read-only=0 on the host with the active_master_role.
# 设置写角色的时候,会执行set global read_only = 0;
cluster_interface eth0
# network interface on which the IPs of the roles should be configured
# 配置的网络接口,注意不能指定为子接口,例如eth0:0
agent_port 9989
# Port on which mmm_agentd listens
# mmm_agentd的监听端口,默认为9989
mysql_port 3306
# Port on which mysqld is listening
# 监听的mysql端口,默认3306
pid_path /var/run/mysql-mmm/mmm_agentd.pid
# Location of pid-file
# pid文件位置,如果配置cluster模式,需要增加cluster标识.
bin_path /usr/libexec/mysql-mmm/
# Path to directory containing MMM binaries
# mmm执行文件路径,注意:2.0版本和2.1版本的路径不一样.
replication_user replication
replication_password XXX
全部回答
- 1楼网友:狂恋
- 2021-02-15 17:13
不明白啊 = =!
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯