1

我在尝试让 Apache Geode (v1.0.0-incubating.M2) 在 Linux 上运行时遇到问题。

问题是:当我试图gfsh start server --name=server1从文档中运行示例命令时,它给了我以下错误:

Exception in thread "main" com.gemstone.gemfire.InternalGemFireError: Cannot resolve local host name to an IP address.

4

1 回答 1

1

事实证明,您需要将主机名(由hostname命令输出给出)存在于/etc/hosts文件中。

在我的例子中,hostname给出一个别名作为输出(比如说my_alias),所以我通过my_ip my_full_domain my_alias/etc/hosts.

于 2016-07-18T16:42:41.967 回答