最近有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退出失敗的解決辦法就介紹到這,在操作過程中遇到這樣的問題時可以參考上面介紹的方法來解決。