CentOS 7 install telnet service

To test zabbix today, you need to use the telnet service, and find out how to download and install the telnet service under Centos7, hereby organize the records!

1. Download and install telnet through yum

yum -y install xinetd telnet telnet-server 

Second, the configuration file settings

2.1 Set to allow root account login

vi /etc/securetty

  Add the following two lines to the end of the document, :wq! save and exit

pts/0  
pts/1 

2.2 Set firewall, add firewall port

vi /etc/sysconfig/iptables 

  

-A INPUT -p tcp -m state --state NEW -m tcp --dport 23 -j ACCEPT 

  Restart the firewall service for the configuration to take effect

systemctl restart iptables  
systemctl disable firewalld  
systemctl stop firewalld 

3. Register telnet service

systemctl enable telnet.socket  
systemctl start telnet.socket  
systemctl enable xinetd  
systemctl start xinetd  

  

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325232403&siteId=291194637