System environment: centos7
Specific method:
1. Check whether telnet is installed
rpm -qa | grep telnet
2. yum install telnet
yum -y install telnet telnet-server xinetd
3. Set xinetd to start automatically at boot
systemctl enable xinetd.service
4. Set telnet to start automatically at boot
systemctl enable telnet.socket
5, Start the telnet service
systemctl start telnet.socket systemctl start xinetd
6, Check whether the telnet service is started
netstat -antupl | grep 23
Recommended tutorial: centos tutorial
The above is the detailed content of How to install telnet on centos. For more information, please follow other related articles on the PHP Chinese website!