Chinaunix首页 | 论坛 | 博客
  • 博客访问: 69710
  • 博文数量: 16
  • 博客积分: 1465
  • 博客等级: 上尉
  • 技术积分: 200
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-18 09:32
文章分类

全部博文(16)

文章存档

2012年(1)

2011年(1)

2010年(14)

我的朋友

分类: LINUX

2010-01-22 08:38:37

    其实在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...
阅读(1019) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~