Linux Centos7下安裝telnet服務

1. 查看是否已經安裝telnet

[admin@localhost ~]$ rpm -qa telnet-server
[admin@localhost ~]$ rpm -qa xinetd

2. 安裝telnet

  1. 查找yun列表
[admin@localhost ~]$ yum list |grep telnet
telnet.x86_64                               1:0.17-64.el7              base     
telnet-server.x86_64                        1:0.17-64.el7              base     
[admin@localhost ~]$ yum list |grep xinetd
xinetd.x86_64                               2:2.3.15-13.el7            base 

telnet.x86_64:這個軟件包提供的是 telnet 客戶端程序
telnet-server.x86_64:軟件包,這個纔是真正的 Telnet server 軟件包。
xinetd.x86_64:telnet-server服務啓動依賴xinetd服務,需要首先安裝,如果telnet-server服務在xinetd之前安裝了,要先刪除telnet-server,再安裝xinetd

  1. 安裝
[admin@localhost ~]$ sudo yum -y install xinetd.x86_64
[admin@localhost ~]$ sudo yum -y install telnet.x86_64
[admin@localhost ~]$ sudo yum -y install telnet-server.x86_64
  1. 檢查是否安裝成功
[admin@localhost ~]$ rpm -qa | grep telnet
telnet-0.17-64.el7.x86_64
telnet-server-0.17-64.el7.x86_64
[admin@localhost ~]$ rpm -qa | grep xinetd
xinetd-2.3.15-13.el7.x86_64

3. 啓動

[admin@localhost ~]$ systemctl start telnet.socket
[admin@localhost ~]$ systemctl start xinetd

4. 設置開機自啓

[admin@localhost ~]$ systemctl enable telnet.socket
[admin@localhost ~]$ systemctl enable xinetd.service

5. 驗證

[admin@localhost apps]$ telnet 10.10.10.10 8080
Trying 10.10.10.10...
Connected to 10.10.10.10.
Escape character is '^]'.

完美!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章