搭建TFTP服务器

梦里梦外; 2022-08-13 00:49 234阅读 0赞

sudo apt-get install xinetd tftpd tftp

创建文件/etc/xinetd.d/tftp,并且复制以下内容:

  1. service tftp
  2. {
  3. protocol = udp
  4. port = 69
  5. socket_type = dgram
  6. wait = yes
  7. user = nobody
  8. server = /usr/sbin/in.tftpd
  9. server_args = /tftpboot
  10. disable = no
  11. }

依次执行:

sudo mkdir /tftpboot

sudo chmod -R 777 /tftpboot

sudo chown -R nobody /tftpboot

sudo /etc/init.d/xinetd restart 或者 sudo service xinetd restart

以上语句的意思是创建tftp服务器的文件夹并且递归修改权限和所属组。

发表评论

表情:
评论列表 (有 0 条评论,234人围观)

还没有评论,来说两句吧...

相关阅读

    相关 服务器

    1、安装yum源 由于redhat6.5的yum功能是需要注册费用的,所以自带的yum并不可用,想要使用免费的yum,可以用Centos6的yum源,配置自己的yum源。