linux使用telnet localhost connection refused

2025-05-11 00:47:19

1、如图所示,遇到了connection refused问题;

linux使用telnet localhost connection refused

2、首先使用net衡痕贤伎stat -a | grep telnet;从结果看,没有开启该服务;apt-get install openbsd-inetd;安装openbsd-inetd

linux使用telnet localhost connection refused

3、之后,使用apt-get install telnetd安装telnetd

linux使用telnet localhost connection refused

4、然后/etc/init.d/openbsd-inetd restart;重启openbsd-inetd

linux使用telnet localhost connection refused

5、如图所示,再次查看telnet运行状态,可以看到正在listen

linux使用telnet localhost connection refused

6、如图所示,现在可以成功的telnet localhost啦

linux使用telnet localhost connection refused
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢