Centos 搭建TFTP服务

1、查看是否有安装tftp-server服务

rpm -q tftp-server

2、安装tftp-server服务

yum install tftp-server

3、查看tftp文件配置

[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    -------  存放路径

disable = yes           ------默认是yes,开启tftp服务需设置为no

per_source = 11

cps = 100 2

flags = IPv4

}

4、创建和修改存储目录

cd /var/

mkdir network

chmod o+w network  

vi /etc/xinetd.d/tftp

修改如下参数

server_args = -s /var/network -c

说明:修改项server_args= -s     <path>    -c,其中<path>处可以改为你的tftp-server的根目录,参数-s指定chroot,-c指定了可以创建文件。

disable = no

5、重启tftp服务

service xinetd status

6、查看监听端口

netstat -a | grep tftp

ss -ntul


©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 2,995评论 0 0
  • 系统安装过程 MBR:isolinux/boot.cat stage2: isolinux/isolinux.bi...
    毛利卷卷发阅读 889评论 0 1
  • 英文文档,一开始我也是抗拒的,边翻译边看,也就花费了1个小时基本就阅读过了,我的英文基础其实很差。附上链接:链接:...
    lonecolonel阅读 10,424评论 3 1
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,871评论 0 10
  • 使用cluster程序包内Fanny()函数进行c-均值模糊聚类。 在传统的聚类结果中,每个对象只能分配给唯一的一...
    周运来就是我阅读 2,654评论 0 2

友情链接更多精彩内容