【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>
先检查系统是否安装:rpm -qa | grep telnet,如果没有如下操作:
下载地址:
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/telnet-0.17-48.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/telnet-server-0.17-48.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/xinetd-2.3.14-40.el6.x86_64.rpm
然后执行如下命令:
rpm -ivh xinetd-2.3.14-40.el6.x86_64.rpm
rpm -ivh telnet-0.17-48.el6.x86_64.rpm
rpm -ivh xinetd-2.3.14-40.el6.x86_64.rpm
成功安装完上面三个,然后执行然后启动 xinetd:
service xinetd restart
==以下是linux打开端口命令的使用方法。
nc -lp 23 &(打开23端口,即telnet)
netstat -an | grep 23 (查看是否打开23端口)
linux打开端口命令每一个打开的端口,都需要有相应的监听程序才可以
来源:oschina
链接:https://my.oschina.net/u/4434157/blog/3153570