1. 程式人生 > >centos7 安裝telent和telnet-server

centos7 安裝telent和telnet-server

telent lur failure sys 安裝包 ket server centos7 systemctl

1、先檢查CentOS7.0是否已經安裝以下幾個安裝包:telnet-server、telnet、xinetd。命令如下:

rpm -qa |grep telnet-server
rpm -qa |grep telnet
rpm -qa |grep xinetd

若沒有則執行yum install 安裝

2、安裝完成後,將xinetd服務加入開機自啟動:

systemctl enable telnet.socket

  

3、重啟服務,由於telnet服務也是由xinetd守護的,所以安裝完telnet-server,要啟動telnet服務就必須重新啟動xinetd 。

systemctl start telnet.socket
systemctl start xinetd (或service xinetd start)

附配置文件:

/etc/xinetd.d/telnet

service telnet
{
	flags	          = REUSE
	socket_type = stream
	wait	          = no
	user	          = root
	server	  = /usr/sbin/in.telnetd
	log_on_failure += USERID
	disable	  = no

}
    

  

centos7 安裝telent和telnet-server