Chinaunix首页 | 论坛 | 博客
  • 博客访问: 38476
  • 博文数量: 2
  • 博客积分: 494
  • 博客等级: 下士
  • 技术积分: 120
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-13 13:09
文章分类
文章存档

2008年(2)

我的朋友

分类: LINUX

2008-10-28 14:26:50

新装的rh el5telnetd进程,用来启动xinetd的程序也没有,手工启动telnetd报错:

[root@mecc ~]# telnetd

telnetd: getpeername: Socket operation on non-socket

使用telnetd -debug可以启动,当连接过一次tlenetd就自动退出

 

 

---需要安装使用inetd/xinetd服务连接器来启动telnetd

The problem may be that you are all trying to start in.telnetd from the console. But it must be started by inetd/xinetd ! Inetd receives a socket and then does the following:

Code:

 

close(STDIN_FILENO);

close(STDOUT_FILENO);

close(STDERR_FILENO);

dup2(sock, STDIN_FILENO);

dup2(sock, STDOUT_FILENO);

dup2(sock, STDERR_FILENO);

 

so the in.* programs may communicate using the standard I/O calls or read/write. When you try it from the command line, it tries to get the client address using getpeername(STDIN_FILENO, ...) but it's connected to a pseudo-tty. Try better with "kill -HUP `pidof xinetd`"
阅读(1786) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~