This is the sixth day of my participation in Gwen Challenge

This article has participated in the weekend study plan, click the link to see details: Weekend Study Plan

Accumulate over a long period, constant dripping wears away a stone 😄

Because the company uses the Intranet, Telnet cannot be downloaded directly by using commands.

Yum install telnet-server, so you need to download the offline package and install it. I found a lot of posts on the Internet, so AFTER I installed Telnet service successfully, I recorded the installation steps.

1. Check whether Telnet is installed

The command is as follows:

rpm -qa | grep telnet

rpm -qa | grep xinetd
Copy the code

If no output is displayed, the installation is not complete.

2. Offline package download address

Telnet-client, this software package provides a Telnet client program; Client Telnet-server software package, this is the real Telnet Server software package. The telnet-server service depends on the xinetd service for startup. www.rpmfind.net/linux/rpm2h…

3. Version selection

3.1 tennet: Telnet – 0.17-64. El7 x86_64

3.2 tennet: Telnet – 0.17-64. El7 x86_64

3.3 xinetd: xinetd – 2.3.14-40. El6. X86_64

4. Install

The telnet-server service depends on the Xinetd service. Therefore, install the telnet-server service first. If the telnet-server service is installed before xinetd, delete the telnet-server service and then install xinetd.

Enter the command to obtain the name of the installed software package

rpm -qa | grep telnet

rpm -qa | grep xinetd
Copy the code
  • -q: Using the query mode, when encountering any problems, the RPM command will first ask the user.
  • -a: Queries all software.

Uninstall command:

rpm -e telnet-server-0.17-64.el7.x86_64
rpm -e telnet-0.17-64.el7.x86_64
Copy the code
  • -e: Uninstalls the specified software.

Create a directory in the Linux service and drop the downloaded offline package to the server, for example, usr/local/ SRC/Telnet

Install xinetd

The RPM - the ivh xinetd: xinetd - 2.3.14-40. El6. X86_64. RPMCopy the code
  • -v: Displays the command execution process.
  • -h: Marks are listed during software installation, with # to show the installation progress.
  • -i: Installs a new RPM package on the current system.

Install client:

The RPM - the ivh Telnet - 0.17-64. El7. X86_64. RPMCopy the code

Install server:

The RPM - the ivh Telnet server - 0.17-47. El6. X86_64. RPMCopy the code

Check whether the installation is successful

rpm -qa | grep telnet

rpm -qa | grep xinetd
Copy the code

5. Enable the Telnet service

The Telnet service is disabled by default. To enable the service, modify the file in the /etc/xinetd.d/ Telnet directory (automatically generated after the installation is complete). For some users who cannot find the Telnet file, the Telnet configuration file of centos7 is /etc/xinetd.conf. Centos7 used /etc/xinetd.d/ Telnet. If you don’t know what version of your system is running, don’t worry I have a command for you.

  • Viewing the system version:
cat /etc/redhat-release
Copy the code

If neither of these configuration files is available, don’t worry, we will create our own.

In the /etc/xinetd.d/ directory, run the vim Telnet command to modify disable = yes to disable = no.

service telnet { flags = REUSE socket_type = stream wait = no user = root server =/usr/sbin/in.telnetd log_on_failure +=  USERID disable = no }Copy the code
  • Start thetelnetRely on thexinetdservice
Service xinetd restart or /etc/rc.d/init.d/xinetd restartCopy the code
  • To viewxinetdWhether to start the
ps -ef|grep xinetd
Copy the code

Test Telnet IP + port Take a picture of someone else’s blog:Blog.51cto.com/meiling/198…

  • If you have any questions or errors in this article, please feel free to comment. If you find this article helpful, please like it and follow it.