ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

CentOS7下的tftp安装

2021-06-27 01:03:10  阅读:275  来源: 互联网

标签:0.0 server CentOS7 xinetd root tftp 安装 localhost


一、tftp服务原理

  tftp(trivial file transfer protocal,简单文件传输协议)是居于UDP协议实现的,使用UDP67端口,提供不可靠的数据流传输服务,使用超时重传方式保证数据到达。

  特点:

    1、tftp在运行中不得断开链接

    2、tftp默认属性是在上传和下载的时候采用默认覆盖不提示方式。

    3、tftp上传的文件可能会加上只读属性。

二、tftp的安装’

yum install xinetd tftp tftp-server        # root 用户执行
sudo yum install xinetd tftp tftp-server   # 普通用户执行

三、服务配置

[root@localhost ~]# cat /etc/xinetd.d/tftp 
# default: off
# description: The tftp server serves files using the trivial file transfer \
#    protocol.  The tftp protocol is often used to boot diskless \
#    workstations, download configuration files to network-aware printers, \
#    and to start the installation process for some operating systems.
service tftp
{
    socket_type        = dgram
    protocol           = udp
    wait               = yes
    user               = root
    server             = /usr/sbin/in.tftpd
    server_args        = -s /var/lib/tftpboot -c   # 注意这行,如果允许上传,一定要加上参数 -c
    disable            = no   # 这行默认为yes,改成no,允许
    per_source         = 11
    cps                = 100 2
    flags              = IPv4
}

三、启动服务

[root@localhost ~]#systemctl restart xinetd.service 
[root@localhost ~]# netstat -a | grep tftp 
udp        0      0 0.0.0.0:tftp            0.0.0.0:*                          
udp6       0      0 [::]:tftp               [::]:* 
[root@localhost ~]# netstat -tunap | grep :69
udp        0      0 0.0.0.0:69              0.0.0.0:*                           30014/xinetd        
udp6       0      0 :::69                   :::*                                1/systemd  

 

标签:0.0,server,CentOS7,xinetd,root,tftp,安装,localhost
来源: https://www.cnblogs.com/lac759/p/14939621.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有