Chinaunix首页 | 论坛 | 博客
  • 博客访问: 402437
  • 博文数量: 65
  • 博客积分: 1491
  • 博客等级: 上尉
  • 技术积分: 702
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-30 15:57
文章分类
文章存档

2011年(6)

2010年(12)

2009年(47)

我的朋友

分类: LINUX

2009-07-02 20:17:08

原文连接:

1. Install tftpd and related packages.

$ sudo apt-get install xinetd tftpd tftp

2. Create /etc/xinetd.d/tftp and put this entry:

service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}

3. Make /tftpboot directory

$ sudo mkdir /tftpboot
$ sudo chmod -R 777 /tftpboot
$ sudo chown -R nobody /tftpboot

4. Start tftpd through xinetd

$ sudo /etc/init.d/xinetd start

备注:
(1),xinetd是什么:
一大堆服务的管理程序。比如:telnet,ftp等。如果每个服务一个守护进程,太占用资源。所以就用xinetd统一监听端口,有请求时把服务启起来。
附:一篇详细介绍的文章:
(2),tftp的工作目录可以改变
本例中才用的工作目录为:/tftpboot
用户可根据实际情况设定tftp的工作目录.

(3),文件:/etc/xinetd.conf
xinetd实际在启动时查看的配置文件是/etc/xinetd.conf,这个文件包含指定了具体服务程序的配置信息目录。
阅读(1701) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~