配置tftp server小小结

最近在用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
}
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值