Installation and configuration of Linux-centos 7 under Tftp-server service

Source: Internet
Author: User
Tags file transfer protocol

The TFTP (Trivial file Transfer Protocol, simple Files Transfer Protocol) is one of the TCP/IP protocol families used between the client and the server

The protocol for simple File transfer, provides an uncomplicated, inexpensive file transfer service. Port number 69th for UDP .

TFTP is a simple protocol for transferring files, which is implemented based on the UDP protocol . but we're not sure that some TFTP protocols are based on other transport protocols.

This protocol is designed for small file transfers. So it does not have many features of the usual FTP,

it can only get or write files from the file server, The directory cannot be listed and is not certified . It transmits 8 bits of data.

There are three modes in the transmission: Netascii, this is the 8-bit ASCII format, The other is octet, which is a 8-bit source data type;

The last mail is no longer supported, and it returns the returned data directly to the user instead of saving it as a file.

======================================================

To install Tftp-server on CentOS 7 as an example, the process of installing and configuring the Tftp-server service is documented as follows:

1, install TFTP or relatively simple, only need to use the Yum command installation, as follows:

[Email protected]5201351yuminstall tftp-server-y        //

: Installation of Tftp-server is dependent on xinetd and requires a separate installation if the TFTP client needs to be installed

2, the TFTP service relies on the Network Daemon Service program xinetd, The TFTP service is disabled by default, so you need to modify the TFTP configuration file to turn on the service

change the value of disable to No , where the default root directory for TFTP is /var/lib/tftpboot, as follows:

[[Email protected]5201351~]# vim/etc/xinetd.d/tftpservice tftp{Socket_type=Dgram Protocol=UDPwait=Yes user=Root server=/usr/sbin/inch. TFTPD Server_args=-s/var/lib/tftpboot Disable=No #默认为yes, here we change it to no Per_source= OneCPS= - 2Flags=IPv4} 

3, start the Tftp-server service, it is important to note that before starting Tftp.service must start tftp.socket

[[email protected]5201351 ~]# systemctl start tftp.socket[[email protected]5201351 ~]# Systemctl Start Tftp.service

4, using TFTP, the author here in Windows 7, for example, Windown 7 by default does not enable the TFTP client feature, we can in the "program--turn Windows features on or off" to enable TFTP

TFTP [-i] host [GET | PUT] Source [destination]             //TFTP command use help ================================================  10.101. 230.168 5201351. txt                         // Download the file under root TFTP root to the current directory 10.101.  230.168 get aa/5201351. txt \5201352. txt       //  Download the specified file on the TFTP server to a locally specified directory

"Supplemental Content-upload of tftp files" >>>>>>>>>>>>>>>>

=========================================================

1, to the need to upload directories and write permissions, mainly to other users with write permissions

2. Server_args option value, end plus- c parameter in the TFTP configuration file

3, restart xinetd.service, Tftp.service service

10.101. 230.168 put 5201351.txt        // the target directory is not specified, which is the default TFTP root directory

Respect for the work of others reproduced please be sure to indicate the source: http://www.cnblogs.com/5201351/p/4934625.html

Installation and configuration of Linux-centos 7 under Tftp-server service

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.