美文网首页
centos7安装telnet

centos7安装telnet

作者: 装完逼立马跑 | 来源:发表于2018-06-05 14:43 被阅读0次
#检查系统是否已经安装
[root@VM_0_2_centos ~]# rpm -qa telnet-server
[root@VM_0_2_centos ~]# rpm -qa xinetd
[root@VM_0_2_centos ~]# yum list telnet*
#查找yum源
[root@VM_0_2_centos ~]# yum list telnet*
telnet.x86_64              1:0.17-64.el7            os
telnet-server.x86_64          1:0.17-64.el7        os
[root@VM_0_2_centos ~]# yum list xinetd*
xinetd.x86_64       2:2.3.15-13.el7             os
#安装,遇到提示就输入y
[root@VM_0_2_centos ~]# yum install telnet-server.x86_64
[root@VM_0_2_centos ~]# yum install telnet.x86_64 
[root@VM_0_2_centos ~]# yum install xinetd.x86_64
#设置开机启动服务
[root@VM_0_2_centos ~]# systemctl enable xinetd.service
[root@VM_0_2_centos ~]# systemctl enable telnet.socket
Created symlink from /etc/systemd/system/sockets.target.wants/telnet.socket to /usr/lib/systemd/system/telnet.socket.
#启动服务
[root@VM_0_2_centos ~]# systemctl start xinetd
[root@VM_0_2_centos ~]# systemctl start telnet
#测试(80端口没有服务,8080端口有个tomcat)
[root@VM_0_2_centos ~]# telnet 119.29.63.222 80
Trying 119.29.63.222...
telnet: connect to address 119.29.63.222: Connection refused
[root@VM_0_2_centos ~]# telnet 119.29.63.222 8080
Trying 119.29.63.222...
Connected to 119.29.63.222.
Escape character is '^]'.
Connection closed by foreign host.

相关文章

网友评论

      本文标题:centos7安装telnet

      本文链接:https://www.haomeiwen.com/subject/dsgpsftx.html