Failed to connect to ourself!错误解决办法


今天重启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。一切正常!


原文地址:https://www.cnblogs.com/feihongwuhen/p/7170052.html