今天重启mysql cluster的管理节点的时候,启动不了,尝试了几次仍然有问题,查看日志,出现如下报错。

2011-04-01 23:49:03 [MgmtSrvr] INFO     -- Got initial configuration from '/usr/local/mysql/mysql-cluster/config.ini', will try to set it when all ndb_mgmd(s
) started
2011-04-01 23:49:03 [MgmtSrvr] INFO     -- Mgmt server state: nodeid 1 reserved for ip 192.168.100.32, m_reserved_nodes 1.
2011-04-01 23:49:03 [MgmtSrvr] INFO     -- Node 1: Node 1 Connected
2011-04-01 23:49:03 [MgmtSrvr] INFO     -- Id: 1, Command port: *:1186
2011-04-01 23:49:03 [MgmtSrvr] WARNING  -- 1011 Unable to connect with connect string: nodeid=0,localhost:1186
2011-04-01 23:49:03 [MgmtSrvr] ERROR    -- Failed to connect to ourself!

很奇怪,这几天一直正常使用,今天一重启就有问题了,问了同事这两天这个服务器做了哪些更改。答曰:
更改了hosts文件。上去一看:发现被更改成:
127.0.0.1               localhost.localdomain openldap
于是更改成默认值
127.0.0.1               localhost.localdomain localhost

重新启动,OK。一切正常!


相关文章:

  • 2021-04-04
  • 2022-02-09
  • 2021-05-01
  • 2022-12-23
  • 2021-10-16
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2022-02-26
  • 2021-11-20
  • 2022-12-23
  • 2021-10-19
相关资源
相似解决方案