免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: skyturing
打印 上一主题 下一主题

[网络管理] telnet 服务无法启动 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2007-04-20 15:41 |只看该作者
原帖由 ssffzz1 于 2007-4-20 11:58 发表于 10楼  
先看看系统日志。或者重新安装xinetd


重装xinetd包定能解决问题。
如果想研究一下,还是得看日志

论坛徽章:
0
12 [报告]
发表于 2007-04-21 00:11 |只看该作者
in xinetd.conf
check "includedir /etc/xinetd.d"

论坛徽章:
0
13 [报告]
发表于 2012-09-12 21:26 |只看该作者
你好,我的telnet服务也无法启动,请帮忙看一下,谢谢了

machine1:/etc/xinetd.d # cat /etc/xinetd.d/telnet.rpmsave
# default: off
# description: Telnet is the old login server which is INSECURE and should \
#       therefore not be used. Use secure shell (openssh).
#       If you need telnetd not to "keep-alives" (e.g. if it runs over a ISDN \
#       uplink), add "-n".  See 'man telnetd' for more details.
service telnet
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
}


machine1:/etc/xinetd.d # /etc/init.d/xinetd restart
Shutting down xinetd: (waiting for all children to terminate)                                                            done
Starting INET services. (xinetd)                                                                                         done

machine1:/etc/xinetd.d # chkconfig --list |grep telnet

回复 10# ssffzz1


   

论坛徽章:
0
14 [报告]
发表于 2012-09-12 21:27 |只看该作者
再把日志附一下,看不太懂
machine1:/etc/xinetd.d # tail -n 50 /var/log/messages | grep xinetd
Sep 12 21:15:55 machine1 xinetd[11663]: Exiting...
Sep 12 21:15:55 machine1 xinetd[23526]: Attribute log_type needs a space before operator [file=/etc/xinetd.conf] [line=10]
Sep 12 21:15:55 machine1 xinetd[23526]: missing service keyword [file=/etc/xinetd.conf] [line=11]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=27]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/chargen-udp [file=/etc/xinetd.d/chargen-udp] [line=14]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/cvs [file=/etc/xinetd.d/cvs] [line=15]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/daytime [file=/etc/xinetd.d/daytime] [line=16]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/daytime-udp [file=/etc/xinetd.d/daytime-udp] [line=14]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/discard [file=/etc/xinetd.d/discard] [line=15]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/discard-udp [file=/etc/xinetd.d/discard-udp] [line=14]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/echo [file=/etc/xinetd.d/echo] [line=15]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/echo-udp [file=/etc/xinetd.d/echo-udp] [line=13]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/netstat [file=/etc/xinetd.d/netstat] [line=15]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/rsync [file=/etc/xinetd.d/rsync] [line=16]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/servers [file=/etc/xinetd.d/servers] [line=12]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/services [file=/etc/xinetd.d/services] [line=14]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/swat [file=/etc/xinetd.d/swat] [line=14]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/systat [file=/etc/xinetd.d/systat] [line=12]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/tftp [file=/etc/xinetd.d/tftp] [line=17]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/time [file=/etc/xinetd.d/time] [line=15]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/time-udp [file=/etc/xinetd.d/time-udp] [line=15]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/vnc [file=/etc/xinetd.d/vnc] [line=15]
Sep 12 21:15:55 machine1 xinetd[23526]: Reading included configuration file: /etc/xinetd.d/vsftpd [file=/etc/xinetd.d/vsftpd] [line=90]
Sep 12 21:15:55 machine1 xinetd[23526]: Service echo will use IPv6 or fallback to IPv4
Sep 12 21:15:55 machine1 xinetd[23526]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in.
Sep 12 21:15:55 machine1 xinetd[23526]: Started working: 1 available service
Sep 12 21:15:56 machine1 user_cmd: 2012-09-12 21:15:55 /etc/init.d/xinetd restart by root from [root     pts/1        Sep 12 20:48 (10.138.2.154)]
回复 10# ssffzz1


   

论坛徽章:
0
15 [报告]
发表于 2012-09-14 14:34 |只看该作者
已经解决了,谢谢大家

telnet对应的服务包都卸载了。
machine1:~ # rpm -qf /etc/xinetd.d/telnet
error: file /etc/xinetd.d/telnet: No such file or directory
machine1:~ # rpm -q telnet-server
package telnet-server is not installed
machine1:~ # ls -l /etc/xinetd.d/telnet*
-rw-r----- 1 root root 454 Sep 12 20:58 /etc/xinetd.d/telnet.rpmsave
machine1:~ #

如果要用就通过手工将telnet-server包安装上去。
将该包上传到目标机器,然后执行rpm -ivh telnet-server-1.2-134.22.x86_64.rpm进行安装。
然后修改/etc/xinetd.d/telnet、/etc/securetty等配置文件并重启xinetd服务解决(/etc/init.d/xinetd restart
)。

回复 14# wxdlut


   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP