一、xinetd安裝
telnet服務(wù)依賴于xinetd服務(wù),所以需要首先安裝xinetd服務(wù)
查看服務(wù)器是否安裝有xinetd,如果已安裝則進(jìn)行下一步,沒有則先安裝xinetd服務(wù)
[root@localhost ~]# rpm -qa|grep xinetd
1、下載上傳xinetd安裝包
[root@localhost ~]# xinetd-2.3.15-14.el7.x86_64.rpm
2、安裝xinetd服務(wù)
[root@localhost ~]# rpm -ivh xinetd-2.3.15-14.el7.x86_64.rpm
3、啟動(dòng)xinetd服務(wù)
[root@localhost ~]# systemctl start xinetd.service
[root@localhost ~]# systemctl stauts xinetd.service
● xinetd.service - Xinetd A Powerful Replacement For Inetd
Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-12-29 10:32:23 CST; 2 months 14 days ago
Main PID: 28743 (xinetd)
Tasks: 1
CGroup: /system.slice/xinetd.service
└─28743 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid
二、telnet安裝
1、下載上傳telnet安裝包
[root@localhost ~]# telnet-0.17-65.el7_8.x86_64.rpm
[root@localhost ~]# telnet-server-0.17-65.el7_8.x86_64.rpm
第一個(gè)為telnet客戶端安裝包,第二個(gè)為真正的telnet服務(wù)安裝包
2、安裝telnet服務(wù)
[root@localhost ~]# rpm -ivh telnet-0.17-65.el7_8.x86_64.rpm
[root@localhost ~]# rpm -ivh telnet-server-0.17-65.el7_8.x86_64.rpm
3、啟動(dòng)telnet服務(wù)
[root@localhost ~]# systemctl start telnet.socket
[root@localhost ~]# systemctl enables telnet.socket \\設(shè)置自啟動(dòng)
[root@localhost ~]# systemctl status telnet.socket
● telnet.socket - Telnet Server Activation Socket
Loaded: loaded (/usr/lib/systemd/system/telnet.socket; enabled; vendor preset: disabled)
Active: active (listening) since Tue 2023-03-14 16:39:56 CST; 23s ago
Docs: man:telnetd(8)
Listen: [::]:23 (Stream)
Accepted: 4; Connected: 0
三、檢查防火墻
1、檢查系統(tǒng)默認(rèn)防火墻,如果未關(guān)閉系統(tǒng)防火墻,需關(guān)閉
[root@itkcpt ~]# systemctl status firewalld
● firewalld.service
Loaded: masked (/dev/null; bad)
Active: inactive (dead)
2、配置iptables,放通telnet需要的23端口文章來源:http://www.zghlxwxcb.cn/news/detail-693272.html
至此部署完成文章來源地址http://www.zghlxwxcb.cn/news/detail-693272.html
到了這里,關(guān)于linux centos7部署telnet的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!