您的位置:首页 > 大数据 > 人工智能

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

2011-04-01 16:16 375 查看
今天重启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。一切正常!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐