1. Install server and clientsudoapt-getinstalltftpd-hpatftp-hpa2, delete standalone Startup Mode update-rc.d-ftftpd-hparemove3, create user tftpd and its home directory sudomkdir-p/home/tftpdsudouseradd-s/bin/false-gnogroup-d/home/tftpd 1. Install the server and client
Sudo apt-get install tftpd-hpa tftp-hpa
2. Delete the standalone startup method.
Update-rc.d-f tftpd-hpa remove
3. Create a user tftpd and its home directory
Sudo mkdir-p/home/tftpd
Sudo useradd-s/bin/false-g nogroup-d/home/tftpd [-p PASSWORD] tftpd
4. Create an xinetd Startup File
Cat/etc/xinetd. d/tftpd
Service tftp
{
Disable = no
Socket_type = dgram
Wait = no
User = root
Protocol = udp
Server =/usr/sbin/in. tftpd
Server_args =-s/home/tftpd-p-c-U 077-u tftpd
Log_on_success + = PID HOST DURATION
Log_on_failure + = HOST
}
5. comment out the tftpd startup in the/etc/inetd. conf file
# Tftp dgram udp wait root/usr/sbin/in. tftpd/usr/sbin/in. tftpd-s/var/lib/tftpboot
6. Restart the xinetd service.
Sudo/etc/init. d/xinetd restart
7. test whether the tftpd service is successful
Tftp localhost
Tftp> put 123.log
Tftp> put 123.log test. log
Tftp> get test. log
Tftp> get test. log abc. log
Tftp> verbose
Verbose mode on.
Tftp> trace
Packet tracing on.
Tftp> put kkk. log
Sent DATA
Received ACK
.........
Sent DATA
Received ACK
Sent 12999997 bytes in-1.5 seconds [-69987938 bit/s]
Congratulations! Your tftpd has been installed successfully!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service