Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Summary of MySQL highly available MHA installation, deployment and failover details

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

< /dev/null >

/ logs/mha/app1/manager.log 2 > & 1 &

Execute the background situation, as follows:

[root@oraclem1 mha4mysql-manager-0.56] # nohup masterha_manager-- conf=/etc/masterha/app1.cnf / logs/mha/app1/manager.log 2 > & 1 & [1] 8973 [root@oraclem1 mha4mysql-manager-0.56] # [root@oraclem1 mha4mysql-manager-0.56] # tail-f / logs/mha/app1/manager.logFri Apr 10 02:46:43 2015-[warning] Global configuration file / etc/masterha_default.cnf not found. Skipping.Fri Apr 10 02:46:43 2015-[info] Reading application default configuration from / etc/masterha/app1.cnf..Fri Apr 10 02:46:43 2015-[info] Reading server configuration from / etc/masterha/app1.cnf..8.2 using masterha_check_status detection

[root@oraclem1 ~] # masterha_check_status--conf=/etc/masterha/app1.cnf

App1 (pid:8973) is running (0:PING_OK), master:192.168.52.129

[root@oraclem1 ~] #

Manual operation:

8.3 stop manager

Command: masterha_stop-- conf=/etc/masterha/app1.cnf

[root@oraclem1 mha4mysql-manager-0.56] # masterha_stop-- conf=/etc/masterha/app1.cnf

Stopped app1 successfully.

[1] + Exit 1 nohupmasterha_manager-- conf=/etc/masterha/app1.cnf

< /dev/null >

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report