CentOS配置TFTP服务器

服务器端

软件包

  tftp-server

启动脚本

  /usr/sbin/in.tftpd

启动服务

  /usr/lib/systemd/system/tftp.service

配置文件

  /etc/xinetd.d/tftp

访问文件根目录

  /var/lib/tftpboot

启动服务

CentOS6 修改配置文件

    disable                 = no

重启超级守护进程

    systemctl restart xinetd

查看监听端口

    netstat -unlp

        udp        0      0 0.0.0.0:69           0.0.0.0:*                           117181/xinetd

CentOS7 

    systemctl start tftp

客户端

软件包

  tftp

使用

tftp IP_ADDR[:PORT]

>help
Commands may be abbreviated.  Commands are:

connect     connect to remote tftp
mode        set file transfer mode
put         send file
get         receive file
quit        exit tftp
verbose     toggle verbose mode
trace       toggle packet tracing
literal     toggle literal mode, ignore ':' in file name
status      show current status
binary      set mode to octet
ascii       set mode to netascii
rexmt       set per-packet transmission timeout
timeout     set total retransmission timeout
?           print help information
help        print help information
原文地址:https://www.cnblogs.com/cq146637/p/8724525.html