最近有CentOS用户反映在调试网络程序时出现了问题,服务虽然启动了,但客户端却无法连接上,用telnet连接后发现是Windows防火墙的问题,可是用telnet命令连接成功后发现退不出去了,这该怎么办?下面小编就给大家介绍下CentOS下telnet退出失败的解决办法。
退不出去了!Ctrl + c,Ctrl + z,ESC,q,quit,exit,都不行;
注意telnet连接成功后输出的信息:
Escape character is ‘^]’。
Ctrl + ]
方法终于对了;
telnet》 ?
Commands may be abbreviated. Commands are:
close close current connection
logout forcibly logout remote user and close the connection
display display operating parameters
mode try to enter line or character mode (‘mode ?’ for more)
open connect to a site
quit exit telnet
send transmit special characters (‘send ?’ for more)
set set operating parameters (‘set ?’ for more)
unset unset operating parameters (‘unset ?’ for more)
status print status information
toggle toggle operating parameters (‘toggle ?’ for more)
slc change state of special charaters (‘slc ?’ for more)
z suspend telnet
! invoke a subshell
environ change environment variables (‘environ ?’ for more)
? print help information
telnet》 close
Connection closed.
输入问号然后回车,可以查看帮助;
输入close或quit然后回车,可以退出telnet;
CentOS下telnet退出失败的解决办法就介绍到这,在操作过程中遇到这样的问题时可以参考上面介绍的方法来解决。