系统 NOT 运行 使用完全限定的主机名

System NOT running to use fully qualified hostnames

相关:

我想用 CouchDB 2.0.0 设置集群,但首先我需要一台主机 运行。我尝试了许多主机名配置,但它们总是导致:

** System NOT running to use fully qualified hostnames **

这是我试过的,每次尝试后都重新安装并重新启动。

-sname couchdb@thiscomputer.local
-sname couchdb@thiscomputer
-sname couchdb@192.168.178.59
-sname thiscomputer

-name couchdb@thiscomputer.local
-name couchdb@thiscomputer
-name couchdb@192.168.178.59
-name thiscomputer    

这些都失败了。所以也许我在服务器配置中做错了什么?

主机名

pi@thiscomputer:~ $ sudo cat /etc/hostname 
thiscomputer

主机

pi@thiscomputer:~ $ sudo cat /etc/hosts
127.0.0.1   thiscomputer    thiscomputer.local
::1         localhost ip6-localhost ip6-loopback
ff02::1     ip6-allnodes
ff02::2     ip6-allrouters

127.0.1.1   localhost

这里 GitHub 的支持:https://github.com/apache/couchdb/issues/729#issuecomment-319202529 帮我解决了这个问题。

经验教训:

  • 切勿使用 -sname。我们将从示例中删除此建议 vm.args 文件。
  • 如果这是单个节点,而不是集群,请始终使用 -名称 couchdb@127.0.0.1。
  • 如果未配置 DNS,则仅使用 IP 地址:-name couchdb@192.168.0.1。
  • 如果配置了 DNS,请使用 FQDN 只有:-name couchdb@my.host.name.com
  • /etc/hosts 的技巧不 作为 Erlang 绕过 libresolv 工作。

以上智慧的积分、工藤和免费啤酒应该去 Wohali