gpt4 book ai didi

erlang - 设置 Erlang 节点失败并显示 "Can' t set long node name!请检查您的配置”

转载 作者:行者123 更新时间:2023-12-02 00:10:43 24 4
gpt4 key购买 nike

$ erl -name lofa
{error_logger,{{2008,6,18},{21,43,13}},"Can't set long node name!
\nPlease check your configuration\n",[]}
# ... several stacktrace lines follow ...

最佳答案

Quoting José Valim :

This is likely happening because hostname -f is not returning a value, i.e. your machine doesn't know how it should be named in the network. You can use --sname, give the fullname, like --name foo@IP_ADDRESS or something that makes sense between machines (so they can find each other).

另一个解决方案是 set the hostname directly ( sudo hostname <FQDN> ),或更新主机文件(例如,Linux 中的 /etc/hosts)。

关于erlang - 设置 Erlang 节点失败并显示 "Can' t set long node name!请检查您的配置”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59219229/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com