免费注册 查看新帖 |

Chinaunix

广告
  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4433 | 回复: 2
打印 上一主题 下一主题

[samba] 求助linux telnet吊死,修改最大连接数,重启telnet服务无效 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-09-06 11:20 |只看该作者 |倒序浏览
本帖最后由 winzip_cu 于 2011-09-06 11:25 编辑

小弟有台设备,现在无法登录,ssh无问题,一旦telnet该机时显示到这里就停止了:
$ telnet 10.10.42.142
Trying 10.10.42.142...
Connected to 10.10.42.142.
Escape character is '^]'.
然后一直停止在这里。然后进程里会多出2行:
root     20887 19621  0 11:04 ?        00:00:00 in.telnetd: 10.10.30.124
root     20888 20887  0 11:04 pts/161  00:00:00 login -h 10.10.30.124 -p
每有人telnet一次便增加1次,现在里面已经累计了100多条记录了:
root     13270     1  0 Aug31 ?        00:00:00 login -h 10.101.16.189 -p
root     13749     1  0 Aug31 ?        00:00:00 login -h 10.101.16.189 -p
root     14432     1  0 Aug31 ?        00:00:00 login -h 10.101.16.189 -p
root     14881     1  0 Aug31 ?        00:00:00 login -h 10.101.16.189 -p
root     15432     1  0 Aug31 ?        00:00:00 login -h 10.101.16.189 -p
root     15986     1  0 Aug31 ?        00:00:00 login -h 10.101.16.189 -p
root     16460     1  0 Aug31 ?        00:00:00 login -h 10.101.16.189 -p
root     17017     1  0 Aug31 ?        00:00:00 login -h 10.101.16.189 -p
root     17450     1  0 Aug31 ?        00:00:00 login -h 10.101.16.189 -p
root     18133     1  0 Aug31 ?        00:00:00 login -h 10.101.16.189 -p
root     18626     1  0 Aug31 ?        00:00:00 login -h 10.101.16.189 -p
root     19183     1  0 Aug31 ?        00:00:00 login -h 10.101.16.189 -p
root     19624     1  0 Aug31 ?        00:00:00 login -h 10.101.16.189 -p
。。。。。。。
配置如下:

#more /etc/xinetd.conf

CORRECT>more /etc/xinetd.conf (y|n|e|a)? yes
# Default settings
defaults
{
        log_on_failure          = HOST ATTEMPT
}

# Services
includedir /etc/xinetd.d
==============================================
#more telnet
service telnet
{
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        instances       = 300
}
===============================================

# who
test1  pts/160      Sep  6 10:19 (10.10.30.124)
#
#
# who -a
           system boot  May 10 01:01
                        May 10 01:01               219 id=in    term=0 exit=0
                        Jul 21 00:33             10419 id=rc
                        Jul 21 00:33             10410 id=cs
                        Jul 21 00:33             10411 id=cl
                        Jul 21 00:33             10412 id=sd
                        Jul 21 00:33             10413 id=fs
                        May 10 01:02              1009 id=r3    term=0 exit=0
                        Sep  6 10:48             19621 id=xi
LOGIN      console      Jul 21 01:05             31792 id=s0
           pts/1        Aug 31 03:52             13259 id=/1    term=0 exit=0
           pts/2        Aug 30 12:22              5901 id=/2    term=0 exit=0
           pts/3        Aug 26 17:32             21202 id=/3    term=0 exit=0
           pts/4        Aug 26 17:15             14349 id=/4    term=0 exit=0
           pts/2        May 11 17:22             24465 id=ts/2  term=0 exit=0
           pts/1        Aug 30 04:01              8547 id=ts/1  term=0 exit=0
           pts/5        Aug 26 18:18             16922 id=/5    term=0 exit=0
                        Jul 21 00:33             10417 id=wd
           pts/3        Aug 31 04:03             14139 id=ts/3  term=0 exit=0
           pts/6        Aug 26 17:37             17151 id=/6    term=0 exit=0
           pts/18       Aug 31 14:44             17995 id=s/18  term=0 exit=0
           pts/21       Aug 31 11:35              7982 id=s/21  term=0 exit=0
           pts/23       Sep  1 04:04              2925 id=s/23  term=0 exit=0
           pts/29       Aug 31 18:50              2564 id=s/29  term=0 exit=0
           pts/35       Aug 31 19:08              6924 id=s/35  term=0 exit=0
           pts/51       Sep  1 05:16             21716 id=s/51  term=0 exit=0
           pts/57       Sep  1 10:29              8272 id=s/57  term=0 exit=0
           pts/58       Sep  1 14:49             24874 id=s/58  term=0 exit=0
           pts/59       Sep  1 17:06             31708 id=s/59  term=0 exit=0
           pts/60       Sep  1 14:21             25864 id=s/60  term=0 exit=0
           pts/61       Sep  1 15:03             29950 id=s/61  term=0 exit=0
           pts/62       Sep  2 01:47             30522 id=s/62  term=0 exit=0
           pts/64       Sep  2 04:01             18515 id=s/64  term=0 exit=0
           pts/80       Sep  2 17:45              5360 id=s/80  term=0 exit=0
           pts/86       Sep  3 05:10             20835 id=s/86  term=0 exit=0
           pts/87       Sep  3 04:34             20036 id=s/87  term=0 exit=0
           pts/89       Sep  3 00:18              4578 id=s/89  term=0 exit=0
           pts/90       Sep  3 03:32              4646 id=s/90  term=0 exit=0
           pts/91       Sep  3 04:02             21814 id=s/91  term=0 exit=0
           pts/110      Sep  4 04:07             23025 id=/110  term=0 exit=0
           pts/143      Sep  5 12:22             24806 id=/143  term=0 exit=0
           pts/145      Sep  6 04:01             24071 id=/145  term=0 exit=0

我知道重启这个设备肯定可以解决,求助大家有没有不重启设备不影响应用的情况下,解决此问题?
情况就是这么个情况,我只能说这是一个奇迹。。。。。。。

论坛徽章:
0
2 [报告]
发表于 2011-09-06 14:03 |只看该作者
ps -efl输出有:

4 D root     23558     1  0  78   0 -   878 nfs_wa 03:52 ?        00:00:00 login -h 10.101.16.189 -p
4 D root     24044     1  0  78   0 -   878 nfs_wa 04:00 ?        00:00:00 login -h 10.101.16.189 -p
4 D root     24741     1  0  78   0 -   878 nfs_wa 04:08 ?        00:00:00 login -h 10.101.16.189 -p

看到这些进程状态是D(D 无法中断的休眠状态(通常 IO 的进程)),wchan 是nfs_wa。。nfs有什么问题?到底哪里出问题了?

论坛徽章:
0
3 [报告]
发表于 2011-09-06 18:21 |只看该作者
顶起@
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP