免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1921 | 回复: 0
打印 上一主题 下一主题

Fedora 11中tftp的配置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-22 08:38 |只看该作者 |倒序浏览
    其实在Linux系统中,有很多操作都是要root权限的。tftp的安装配置也不例外。下面我来描述以下tftp在Fedora 11中是如何安装和配置的。
    1.下载如下安装包,安装包格式为rpm。
    [root@localhost tftp]# ls
    tftp-server-0.42-5.i386.rpm  xinetd-2.3.14-10.el5.i386.rpm
    2.关闭防火墙和SELinux
    我使用的中文操作系统,若为英文根据对照进行。
    关闭防火墙:系统->管理->防火墙,这时可能要root用户验证,输入root密码即可进入,然后禁用防火墙。
    禁止SELinux:系统->管理->SELinux Management->系统默认的应用模式(选择Disable)。
    3.切换到root权限安装所需软件
    安装tftp所需的软件:
    [root@localhost tftp]# rpm -ivh xinetd-2.3.14-10.el5.i386.rpm
    安装tftp:
    [root@localhost tftp]# rpm -ivh tftp-server-0.42-5.i386.rpm
    这只是完成了安装,之后还要进行配置。
    4.配置tftp
    配置文件在如下路径,执行如下命令即可配置该文件。
    [root@localhost tftp]# vim /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
    {
        disable = no
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /usr/local/at91sam/imgs
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
    }
    server_args为你即将设置的tftp服务文件夹,其他按照如上配置即可。注意:一定要查看每一项配置正确。
    5.测试
    重启计算机,你也可以不重启试试。^_^
    [root@localhost tftp]# service xinetd restart
    停止 xinetd:                                              [确定]
    正在启动 xinetd:                                          [确定]
    OK,此时你的计算机已经支持tftp下载功能了。
    6.常见问题解决
    不过要是出现了一些问题,如不能下载之类的,首先请确保你的tftp文件夹路径设置正确;其次,该文件夹及其中的文件的属性。若属于后者,一般执行chmod 777 文件路径即可解决此问题。最后就所确认你的防火墙的确已经关闭。
    好了,今天就写到这里了,23:21了都……祝大家好运!o(∩_∩)o...

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/85801/showart_2157084.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP