linux使用telnet localhost connection refused
的有关信息介绍如下:linux使用telnet localhost时,遇到 connection refused,关闭防火墙仍然没有解决,后来发现是其他原因
如图所示,遇到了connection refused问题;
首先使用netstat -a | grep telnet;从结果看,没有开启该服务;
apt-get install openbsd-inetd;安装openbsd-inetd
之后,使用apt-get install telnetd安装telnetd
然后/etc/init.d/openbsd-inetd restart;重启openbsd-inetd
如图所示,再次查看telnet运行状态,可以看到正在listen
如图所示,现在可以成功的telnet localhost啦