First, open the telnet service
Usually telnet package is installed by default, as the client; telnet-server package needs to install itself, as a server.
(2) Installation telnet-server
yum -y install telnet-server
(4) open the telnet service (two ways)
a) vi /etc/xinetd.d/telnet, the disable = yes into disable = no;
b) chkconfig telnet on; if you need to set the telnet service to boot from the start, using the command chkconfig -add telnet or chkconfig --add telnet
(5) to activate telnet service
Use the command server xinet drestart or /etc/init.d/xinetd restart for the changes to take effect.
(6) test telnet service is available
Second, turn off telnet service
(1) close the telnet service (two ways)
a) vi /etc/xinetd.d/telnet, the disable = no change disable = yes;
b) chkconfig telnet off; if you need to set the telnet service is not boot from the start, using the command chkconfig -del telnet or chkconfig --del telnet
(2) using the command server xinetd restart or /etc/init.d/xinetd restart for the changes to take effect.
(4) vi / etc / services, comments port 23.