1) First, check the tftp-server installed on the server
using the command: rpm -qa | grep tftp-server
If there is an installed tftp, it will be listed here
2) Install tftp-server and xinetd
using the following commands to perform corresponding services Installation:
$yum -y install tftp-server
$yum -y install xinetd
3) Modify the tftp configuration file
using the following command:
$vi /etc/xinetd.d/tftp Open the configuration file
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot
disable = no //The place that needs to be modified, the initial time is yes
per_source = 11
cps = 100 2
flags = IPv4
}
4) To restart the service,
use the following command to restart the service
$/bin/systemctl restart xinetd.service
If it does not work, use the following command
$/bin/systemctl enable xinetd.service / /Start the service
$/bin/systemctl start xinetd.service //Start the service to
view the service startup status
$ps aux | grep xinetd or $ps -ef|grep xinetd or ps -a | grep tftp
5) Possible problems
5.1) In When starting xinetd.service, it prompts
Redirecting to /bin/systemctl restart xinetd.service
Failed to issue method call: Unit xinetd.service failed to load: No such file or directory.
Help system is not installed xinetd, the need to use yum -y instal xinetd.service serving install
5.2) occurs when you start xinetd.service:
Redirecting to / bin / systemctl restart xinetd.service
command may be initiated systemctl restart xinetd.service
more These are the steps I took to install tftp and some of the problems I encountered. Maybe the reader has other problems during the installation process, but the problem should not be big.
6) xinetd started successfully, you can check the running status of xinetd
netstat -tnlp
Read More:
- redhat7. 5 system service is not started automatically and use systemctl start error: error getting authority: error initializing authority: CO, (the server will restart)
- Linux Install Docker Error: Failed to restart docker.service: Unit docker.service not found.
- Service network restart reported an error and failed to restart [How to Solve]
- [Solved] Service network restart reported an error and failed to restart
- Centos8 Could not restart the Network: Failed to restart network.service: Unit network.service not found
- [Solved] Ubuntu 20.04.3 Fail to Start sshd Error: Failed to start OpenBSD Secure Shell server
- [Solved] Web server failed to start. Port 8080 was already in use.
- See system logs and ‘systemctl status docker.service‘ for details
- Restart and stop of nginx in Linux service
- Ubuntu Server: How to Install Chrome
- [Solved] Job for network.service failed because the control process exited with error code. See “systemctl st
- [Solved] Virtual machine Failed to restart network Error: Error:Failed to start LSB: Bring up/down networking
- [Solved] Gbase Install Error: service cgconfig is not exist on hosts
- Failed to start firewalld.service: Unit is masked [How to Solve]
- [Solved] Linux Service Start Error: *.service: Main process exited, code=exited, status=203/EXEC
- Virtual machine failed to start network service error: ob for network.service failed because the control process exited with error code
- [Solved] Any Softwares Install Error in Ubuntu: /usr/bin/dpkg returned an error code
- [Solved] Centos7 firewalld startup error: Failed to start firewalld.service: Unit is masked.
- [Solved] Remote Server error: Server sent passive reply with unroutable address…
- Error Running Context: The server unexpectedly closed the connection
Pingback: Solve the problem of Telnet: connect to address 127.0.0.1: connection reused error message | DebugAH