Chinaunix首页 | 论坛 | 博客
  • 博客访问: 159538
  • 博文数量: 29
  • 博客积分: 1015
  • 博客等级: 上士
  • 技术积分: 300
  • 用 户 组: 普通用户
  • 注册时间: 2011-05-22 12:30
个人简介

喜读书,尤好史。

文章分类

全部博文(29)

文章存档

2012年(10)

2011年(19)

分类: LINUX

2011-12-20 17:26:45

1、安装过程
 yun install tftp-server
 修改配置文件:/etc/xinetd.d/tftp
  
  service tftp
  {
  
  socket_type =dgram
  protocol =udp
  wait =yes
  user =root
  server =/usr/sbin/in.tftpd
  server_args =-s /home/cpc/tftpboot -c  //改为你要设立的服务器文件夹
  disable =no  //改为no
  source = 11
  cps = 100 2
  flags = IPv4
  }
 创建tftp根目录,启动tftp-server。
 #sudo mkdir /tftpboot
 #sudo chmod 777 /tftpboot
 #service xinetd restart
 Stopping xinetd:                                           [  OK  ]
 Starting xinetd:                                           [  OK  ]
 这样,tftp-server就启动了。你可以登陆本机测试以下,命令如下:
 #tftp 
 tftp>get
 tftp>put
 tftp>q
 #
 安装过程中出现的问题及原因
 现象一:
 tftp> get test.log
 Transfer timed out.
 原因:
 tftpd服务没有启动
 现象二
 tftp> put test2
 Error code 0: Permission denied
 原因:
 运行命令,查看系统日志
 #tail /var/log/messages
 发现有如下一段文字:
 Nov 22 17:08:20 localhost qinguang:      SELinux is preventing /usr/sbin/in.tftpd (tftpd_t) "write" to tftpboot (tftpdir_t).      For complete   SELinux messages. run sealert -l 40a5a6bf-8ded-4bfa-ab6e-fa669a25fc6c
  
      
阅读(1683) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~