在ubuntu-11.04上安装和配置tftpd

来源:互联网 发布:货运车辆调度软件 编辑:程序博客网 时间:2024/06/04 19:32

在日常的工作中,经常会用到tftp server, 最近因服务器ubuntu版本升级,故重新安装tftp server。

下面是安装过程及配置文件。

==> 安装tftp server,client以及 服务程序

   # sudo apt-get install xinetd tftpd tftp

==> 编辑tftp server的配置文件

   # sudo vim /etc/xinetd.d/tftp (其内容如下)

-------------------------------------------------------------------

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

-------------------------------------------------------------------

==> 创建tftp server的根目录

   # sudo mkdir /tftpboot

   # sudo chmod 777 /tftpboot -R

   # sudo chown nobody /tftpboot -R  (让每一个用户可访问)

==> 启动tftp server服务

   # sudo service xinetd restart

==> 测试。运行OK。