Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1216657
  • 博文数量: 404
  • 博客积分: 10011
  • 博客等级: 上将
  • 技术积分: 5382
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-03 16:29
文章存档

2010年(40)

2009年(140)

2008年(224)

我的朋友

分类: LINUX

2008-10-20 12:39:39

最近在用s3c2410,需要配置tftp server。这里总结一下。
如果安装的时候选择了custom:all就肯定自动install了。
可通过
$rpm -qa|grep tftp测试有没有安装。
在rh9下两个安装文件tftp-0.32-4.i386.rpm和tftp-server-0.32-4.i386.rpm
一、在RH7.2安装光盘2#上或rh9的3disk上有。
rpm -ivh tftp-server-0.32-4.i386.rpm
rpm -ivh tftp-0.32-4.i386.rpm
二,编辑/etc/xinet.d/tftp文件,修改
###
## -s 参数指定chroot
## -c 参数指定tftp可以创建文件
server_args= -s /tftpboot -c
disabled=no
三、创建数据文件夹,重新启动XINETD
#mkdir /tftpboot
#chmod o+w /tftpboot或者chmod 777 /tftpboot
#/etc/init.d/xinetd restart或者service xinetd restart
我是在网络服务里选上了tftp自动启动的.
$setup
选择system services里面的tftp,去掉ipchains和iptables两项服务(即去掉它们前面
的*号)
测试e.g:
 #tftp 172.21.5.113
 tftp>get xxxx
 tftp>put xxxx
 tftp>h会有帮助提示。
--------------/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 /tftpboot -c
 per_source  = 11
 cps   = 100 2
 flags   = IPv4
}
阅读(760) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~