今天在一台Red Hat Enterprise Linux Server release 5.4 (Tikanga)上
执行erl -name sfsdf 报如下错误:
[root@cloudbox ejabberd]#erl -name sfsdf
{error_logger,{{2011,4,13},{14,28,4}},"Can't set long node name!\nPlease check your configuration\n",[]}
{error_logger,{{2011,4,13},{14,28,4}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.21.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.9.0>]},{messages,[]},{links,[<0.18.0>]},{dictionary,[{longnames,true}]},{trap_exit,true},{status,running},{heap_size,377},{stack_size,24},{reductions,629}],[]]}
{error_logger,{{2011,4,13},{14,28,4}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[sfsdf,longnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2011,4,13},{14,28,4}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2011,4,13},{14,28,4}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}
Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})
结果发现还是/etc/hosts配置和 hostname不一致引起的
把/etc/hosts中的
127.0.0.1 localhost.localdomain localhost
改成:
127.0.0.1 cloudbox.localdomain cloudbox
即可
分享到:
相关推荐
v6.9.0 marks the transition of Node.js v6 into Long Term Support (LTS) with the codename "Boron". The v6 release line now moves in to "Active LTS" and will remain so until April 2018. After that time ...
Node * del(long n); void sort(int flag); void menu(); void main() { char choose; int flag=1; while (flag) { menu(); //调用功能菜单函数,显示菜单项。 printf(" 请选择:"); choose=getchar();
resolve-node.vercel.app API端点,用于解析具有semver支持的任意Node.js版本。...# LTS version resolution by code name via `lts/:codename` is also supported $ curl https://resolve-node.v
As the name suggests, microservicess refers to small services. For a large implementation, this means breaking the system into really small, independent services. Alternative to monolithic ...
Node<T> * DeleteAccount(long int x); Node<T> * InsertAccount(long int x); void Record(long int x,int y); private: Node<T> *head; }; template<class T> //建立已有储户数据 Node<T> * SavingList<T>::...
string name; string sex; string address; string birthday; string sclass; string major; string sregister; struct student *next; }node; typedef node *link; link stu; public: void Show(); ...
Application.MessageBox('重命名文件失败','重命名',MB_ICONERROR); } { 重命名文件 } function __RenameFile(OldName: string; Title: string): Boolean; var NewName: string; begin NewName := Format('%s%s%s...
自己练习写的一个递归,建议初选者看一下。private Long id;//节点ID private String nodeName;//节点名称 private Long parentid;//父节点id ... public String getNodeName() { return nodeName; }
下面这段代码是网上抄来的,相信有人也找到过这段,实际上真正运行的时候就会发现其实是有问题的,我把它修改了下,能正常读写了。 using System; using System.Collections.Generic; using System.ComponentModel; ...
$ trans Any long string Любую длинную строку 从管道: $ echo " My name is Sergey " | trans Меня зовут Сергей 和 $ trans < ~ /myfile.ru.txt This file is contents.....
private static final long serialVersionUID = 1L; public XmlNode() { } public String tagName; public String tagValue; public String attList; public int level; public XmlNode parent; public...
{ " statusCode " : 400 , " error " : " Bad Request " , " message " : " child \" name \" fails because [ \" name \" length must be at least 10 characters long] " , " validation " :[ {
解析器node.js 中用于维基百科降价文本的简单解析器。...结果 conventional_long_name : French Republiccommon_name : Franceimage_flag : Flag of France.svgimage_coat : Armoiries république fr
2014 Lorenzo Giuliani <lorenzo>Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
内容 系统 登录 目录 政策规定 软件 ceuadmin,git,matlab,Python,R,SLURM,...# -n node name # -r kernel release # -v kernel version # -p processor # -o operating system # Linux Standard Base (lsb) a
HTMLCollection 接口定义 interface HTMLCollection{ readonly attribute unsigned long length; Node item(in unsigned long index); Node namedItem(in DOMString name);} 对于 HTMLCollectio
"scripts" : { // My very long and lengthy lines of scripts: "lint" : "jshint lib test index.js --reporter node_modules/jshint-stylish/stylish.js --exclude node_modules" , "test" : "npm run lint && ...
抽象并不打算了解全部问题,而只是选择其中的一部分,暂时不用部分细节。抽象包括两个方面,一是过程抽象,二是数据抽象。 2.继承: 继承是一种联结类的层次模型,并且允许和鼓励类的重用,它提供了一种明确...
CoinChat客户 简易安装 npm install coinchat-client 帮助 请参考样本文件夹中的样本。...copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT THE FUCK YO