1.检查是否有安装
rpm -qa telnet-server
rpm -qa xinetd
2.安装
yum -y install telnet-server.x86_64
yum -y install telnet.x86_64
yum -y install xinetd.x86_64
3.设置开机启动
systemctl enable xinetd.service
systemctl enable telnet.socket
4.启动
systemctl start telnet.socket
systemctl start xinetd
5.运行测试
telnet 127.0.0.1 3306