Chinaunix首页 | 论坛 | 博客
  • 博客访问: 235991
  • 博文数量: 48
  • 博客积分: 2500
  • 博客等级: 少校
  • 技术积分: 480
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-24 11:02
文章分类

全部博文(48)

文章存档

2010年(33)

2009年(14)

2008年(1)

我的朋友

分类: LINUX

2010-07-04 09:55:53

1、netstat -a | grep tftp  //查看那tftp服务是否启动
   已安装结果:udp 0 0 *:tftp *:*
 
2、如果没有安装:rpm -ivh tftp-server-0.42-3.1.i386.rpm
 
3、建立tftp主工作目录
   mkdir /tftpboot
 
4、修改配置文件vi /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   //tftp服务关闭,设置no为不关闭
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpboot  //tftp工作目录
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}
 

5、tftp重启服务
#/etc/init.d/xinetd restart
#netstat -a | grep tftp
udp 0 0 *:tftp *:*
 
总结:
setup命令查看已经安装的服务
                                                            
                         ┌─────┤ 选择一种工具 ├─────┐                         
                         │                            │                         
                         │        X 配置             │                         
                         │        时区配置          │                         
                         │        系统服务          │                         
                         │        网络配置          │                         
                         │        键盘配置          │                         
                         │        防火墙配置        │                         
                         │        验证配置          │                         
                         │                          │                         
                         │  ┌──────────┐  ┌──────┐  │                         
                         │  │ 运行工具 │  │ 退出 │  │                         
                         │  └──────────┘  └──────┘  │                         
                         │                          │                         
                         │                          │                         
                         └──────────────────────────┘                         
 在系统服务选项中有tftp服务
 - (C) 2000-2001 Red Hat, Inc.                                 
                      ┌────────────┤ 服务 ├─────────────┐                     
                      │                                 │                     
                      │ 您想自动启动哪些服务?          │                     
                      │                                 │                     
                      │ [*] sshd                      ↑ │                     
                      │ [*] syslog                    ? │                     
                      │ [ ] tcpmux-server             ? │                     
                      │ [ ] telnet                    ? │                     
                      │ [*] tftp                      ? │                     
                      │ [ ] time-dgram                ? │                     
                      │ [ ] time-stream               ? │                     
                      │ [ ] tux                       ↓ │                     
                      │                                 │                     
                      │     ┌──────┐       ┌──────┐     │                     
                      │     │ 确定 │       │ 取消 │     │                     
                      │     └──────┘       └──────┘     │                     
                      │                                 │                     
                      │                                 │                     
                      └─────────────────────────────────┘                     
阅读(1506) | 评论(0) | 转发(0) |
0

上一篇:Red Hat samba服务器配置

下一篇:安装wireshark

给主人留下些什么吧!~~