新聞中心
默認(rèn)在centos-Minimal版本下沒(méi)有安裝telnet和xinetd服務(wù)。

成都創(chuàng)新互聯(lián)主要為客戶提供服務(wù)項(xiàng)目涵蓋了網(wǎng)頁(yè)視覺(jué)設(shè)計(jì)、VI標(biāo)志設(shè)計(jì)、成都營(yíng)銷網(wǎng)站建設(shè)、網(wǎng)站程序開(kāi)發(fā)、HTML5響應(yīng)式成都網(wǎng)站建設(shè)、成都手機(jī)網(wǎng)站制作、微商城、網(wǎng)站托管及網(wǎng)頁(yè)維護(hù)、WEB系統(tǒng)開(kāi)發(fā)、域名注冊(cè)、國(guó)內(nèi)外服務(wù)器租用、視頻、平面設(shè)計(jì)、SEO優(yōu)化排名。設(shè)計(jì)、前端、后端三個(gè)建站步驟的完善服務(wù)體系。一人跟蹤測(cè)試的建站服務(wù)標(biāo)準(zhǔn)。已經(jīng)為成都發(fā)電機(jī)維修行業(yè)客戶提供了網(wǎng)站改版服務(wù)。
1、安裝telnet
[root@localhost ~]# rpm -qa | grep telnet --檢查是否安裝telnet,沒(méi)有文件表示未安裝
[root@localhost ~]# yum -y install telnet --安裝telnet客戶端,出現(xiàn)“Complete!”表示安裝完成
[root@localhost ~]# yum -y install telnet-server --安裝telnet服務(wù)端,出現(xiàn)“Complete!”表示安裝完成
2、安裝xinetd
[root@localhost ~]# rpm -qa | grep xinetd --檢查是否安裝xinetd,沒(méi)有文件表示未安裝
[root@localhost ~]# yum -y install xinetd --安裝xinetd,出現(xiàn)“Complete!”表示安裝完成
3、在xinetd服務(wù)中開(kāi)啟telnet服務(wù)
[root@localhost ~]# vi /etc/xinetd.d/telnet --編輯
# default: yes
# description: The telnet server servestelnet sessions
# unencrypted username/password pairs for authentication
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server =/usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}
4、啟動(dòng)xinetd服務(wù)
[root@localhost ~]# systemctl restart xinetd.service --啟動(dòng)服務(wù)
[root@localhost ~]# ps -ef | grep xinetd --查看啟動(dòng)
5、設(shè)置開(kāi)機(jī)啟動(dòng)xinetd
[root@localhost ~]# chkconfig --level 35 xinetd on
Note: Forwarding request to 'systemctl enable xinetd.service'.
[root@localhost ~]# systemctl enable xinetd.service
[root@localhost ~]# chkconfig --list --查看
6、測(cè)試telnet
[root@localhost ~]# telnet 127.0.0.1
telnet下root登錄,密碼正確,總提示:Login incorrect
[root@localhost ~]# vi /etc/pam.d/remote
注釋/etc/pam.d/remote的第一行,即:auth required pam_securetty.so
關(guān)閉防火墻
[root@localhost ~]# systemctl status firewalld.service --再查看防火墻狀
[root@localhost ~]# systemctl stop firewalld.service --關(guān)閉防火墻
[root@localhost ~]# systemctl disable firewalld.service --永久關(guān)閉防火墻
當(dāng)前標(biāo)題:CentOS-Minimal版本下安裝telnet服務(wù)和xinetd服務(wù)
網(wǎng)站路徑:http://m.5511xx.com/article/dhphice.html


咨詢
建站咨詢
