ubuntu14.04安装tftp服务器

来源:互联网 发布:淘宝加盟代理 编辑:程序博客网 时间:2024/06/05 02:34

                                                    疯雨-版权所有,转载请注明【http://blog.csdn.net/u010346967】

1.安装tftp服务

sudo apt-get updatesudo apt-get install tftpd tftp xinetd

2.建立tftp服务器目录,并修改权限

sudo mkdir /tftpbootsudo chmod -R 777 /tftpboot/ 

3.修改/etc/xinetd.d/tftp文件,如果如下目录没有tftp文件,则创建该文件命令如下


 sudo vim /etc/xinetd.d/tftp

  修改为:

service tftp                                                                    {    protocol        = udp    port            = 69    socket_type     = dgram    wait            = yes    user            = nobody    server          = /usr/sbin/in.tftpd    server_args     = /tftpboot    disable         = no}       

4.重新启动tftp服务

sudo /etc/init.d/xinetd restart

5.测试:在/tftp目录下建立 test.c文件,并写入任意字符

tftp 127.0.0.1tftp> get test.ctftp>q 

6.查看当前目录(不能是/tftp目录),下是否有test.c文件


1 0
原创粉丝点击