`
langzhe
  • 浏览: 278538 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Can't set long node name!\nPlease check your configuration

 
阅读更多

 

1、Can't set long node name!\nPlease check your configuration

昨天忙了一晚上,最后确定的还是hosts问题,这次不是少配置了,而是多配置了hosts。

192.168.0.223   client-3.langxwlabdns.com client-3

127.0.0.1       client-3

两台电脑比较发现,其中一台输入erl -name test (默认指定一个域)没有问题,其中一台就出错(Can't set long node name!)

检查了一下hostname 也没有错。

最后发现出错的电脑中hosts多了个127.0.0.1 client-3

显然 程序解释不了 两个。

 

今天又遇到这个问题了

 

把#127.0.0.1      centos localhost.localdomain localhost

#langxw add

改成

127.0.0.1        localhost.localdomain localhost centos


ok 了

 

2、这个问题引起的主要有两种

(1)host配置(2)erl 启动时偷懒造成的

   规规矩矩的 输入erl -name ss@test.com  是不会出现的(至少我没遇到国)

  如果输入erl -name ss 就会出现。但在host 中配置了 127.0.0.1 test.com 就可以偷懒输入了

 

 

1
0
分享到:
评论
4 楼 langzhe 2011-04-22  
dxm1986 写道
langzhe 写道
xzh_endless 写道
你可以尝试 erl -name test@www

这样做肯定没问题 主要是host问题

这样做肯定有问题,别的机子就联不上你这台机子了。

"别的机子连接不?"什么情况? 是别的机器上的erlang node连接不上吗? 相互配置host不就可以连接上了。
3 楼 dxm1986 2011-04-13  
langzhe 写道
xzh_endless 写道
你可以尝试 erl -name test@www

这样做肯定没问题 主要是host问题

这样做肯定有问题,别的机子就联不上你这台机子了。
2 楼 langzhe 2011-03-31  
xzh_endless 写道
你可以尝试 erl -name test@www

这样做肯定没问题 主要是host问题
1 楼 xzh_endless 2011-03-30  
你可以尝试 erl -name test@www

相关推荐

    c++学生成绩管理

    printf("\t%s\t%s\t%5.1f\t%5.1f\t%5.1f\t%6.2f\n",stu[iStudent].name,stu[iStudent].number,stu[iStudent].sub1,stu[iStudent].sub2,stu[iStudent].sub3,stu[iStudent].aver); } int i_max=1; float max_aver=...

    c语言的学生证管理系统

    {printf("\nPlease input your name[ ]\b\b\b\b\b\b\b\b\b"); scanf("%s",student_1.name); printf("\nPlease input you sex male(1) or female(2)[ ]\b\b\b\b\b\b\b"); scanf("%d",&student_1.sex); printf("\...

    C语言学生成绩管理系统

    printf("\nplease enter name which you want to search:"); scanf("%s",&name); printf("\n"); for(i=0;i;i++) if(strcmp(stu[i].name,name)==0) { printf("number name sex math English PE maolun ...

    struct student

    printf("\nplease choice what you want to modify:1-number 2-name 3-score.\n"); scanf("%d",&choice); switch(choice) { case 1:printf("\nEnter the true number:"); scanf("%ld",&num); p->num=num; break; ...

    计算机二级C上机题库

    char name[10]; char tel[10]; }STYPE; void check(); /**********found**********/ int fun(___1___ *std) { /**********found**********/ ___2___ *fp; int i; if((fp=fopen("myfile5.dat","wb"))==NULL) ...

    学生数据管理系统(包括插入,删除,修改等)

    case 7:printf("\n\n\nPlease the choice:\n"); printf("\t\t\t1. Input the student data\n"); printf("\t\t\t2. Add the new studetn data\n"); printf("\t\t\t3. Change a data\n"); printf("\t\t\t4. Insert a ...

    凯撒密码加解密程序

    printf("\nPlease input the infile:"); scanf("%s",infile);/*输入需要加密的文件名*/ if((in=fopen(infile,"r"))==NULL) { printf("Can not open the infile!\n"); printf("Press any key to exit!\n"); ...

    c语言程序 带头节点链表

    printf("\nplease input datds to the list:"); scanf("%ld",&x); while(x!=0) { p=(struct student *)malloc (sizeof(struct student)); p->num=x; p->next=NULL; q->next=p; q=p; scanf("%ld",&x); } ...

    LPC1788单片机开发板资料包括Cadence及PDF版原理图+测试软件源码+技术文档资料.zip

    LPC1788单片机开发板资料包括Cadence及PDF版3原理图+测试软件... put_str_("\nPlease put 'ESC' Return use Menu !\n\r"); switch(rec_char){ case 0x08: put_str("\b \b"); break; case 0x1b: re

    进程调度 操作系统 进程控制模拟

    showMessage("\nplease input text:"); /*text=(char *)malloc(100);*/ text=show_input(); create(text); unscare_mouse(); } void keymode() { char choice; char *msg; /*printf("start:\n"); */ PCB_...

    南开100题 NCRE上机题

    long fun(int n) { if (___1___) return (n*fun(___2___)); return ___3___; } main() { printf("10!=%ld\n", fun(10)); } #include #include /********found********/ IsPrime(int n); { int i, m; m = 1...

    经典程序一百例,许多设计技巧

    printf("\nplease input number you guess:\n"); start=clock(); a=time(NULL); scanf("%d",&guess); while(guess!=i) {if(guess>i) {printf("please input a little smaller.\n"); scanf("%d",&guess);} ...

    c语言常用编程实例100例

    printf("\nplease input year,month,day\n"); scanf("%d,%d,%d",&year,&month,&day); switch(month)/*先计算某月以前月份的总天数*/ {  case 1:sum=0;break;  case 2:sum=31;break;  case 3:sum=59;break;  case...

    校园导游图程序

    \nplease press b or s or e.\n");getchar();break; } Star()函数:主要是显示一个界面,功能是提供查询路径选择和查看进入景点的主页面和退出该页面返回主界面。 switch(choose) {case '0':instruction();...

    C语言程序设计实例(200行)

    /*define a longint time varible*/ lt=time(NULL);/*system time and date*/ printf(ctime(<)); /*english format output*/ printf(asctime(localtime(<)));/*tranfer to tm*/ printf(asctime(gmtime(<))); /*...

    C语言程序设计经典例子

    printf("\nplease input year,month,day\n"); scanf("%d,%d,%d",&year,&month,&day); switch(month) /*先计算某月以前月份的总天数*/ { case 1:sum=0;break; case 2:sum=31;break; case 3:sum=59;break; ...

    C语言程序的改错题

    printf("\nplease enter an integer number between 2 and 10000:"); scanf("%d", &k); printf("\n\nThe prime factor(s) of %d is(are):", k); for (j=2; j; j++) if ((!(k%j)) && (IsPrime(j))) printf(...

    源代码C语言

    C实验各种代码#include #include main( ) { int n, k, xx[20]; int i, j, t; clrscr(); printf("\nPlease enter a number: "); scanf("%d", &n );

    人工智能导论 植物专家系统

    write(" your plant is. \n\n"),clear_facts. positive(X,Y) if xpositive(X,Y),!. positive(X,Y) if not(negative(X,Y)),! and ask(X,Y). negative(X,Y) if xnegative(X,Y),!. ask(X,Y):- write(X," it ",Y...

    计算机二级C语言试题

     printf("nPlease enter an integer number between 2 and 10000:");scanf("%d",&k);  printf("nnThe prime factor(s) of %d is (are):",k);  for (j=2;j;j++)  if ((!(k%j))&&(IsPrime(j)) ...

Global site tag (gtag.js) - Google Analytics