简单文件传输TFTP服务器搭建 Linux RHEL6
2015-06-08 11:24
671 查看
Tftp 的应用场合1、交换机或路由器升级或备份2、无盘工作站 存放boot loader3、嵌入式开发时装载系统4、大规模的服务安装布署 安装1、# yum install xinetd # yum install -y
tftp-server2、检查是否开机启动# chkconfig --list |
grep xinetxinetd 0:off 1:off
2:off 3:on 4:on
5:on 6:offxinetd based
services: chargen-dgram: off chargen-stream: off cvs: off daytime-dgram: off daytime-stream: off discard-dgram: off discard-stream: off echo-dgram: off echo-stream: off rsync: off tcpmux-server: off time-dgram: off time-stream: off3、配置 # vim
/etc/xinetd.d/tftp service tftp{ socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /var/lib/tftpboot
-c 文件存放目录 RHEL5的目录为 /tftp/boot 可自定义 -c 允许上传 disable = no per_source = 11 cps = 100 2 flags = IPv4}#
chkconfig tftp on 也可已直接通过命令将服务改为开机启动 [root@rhel1 ~]#
chkconfig --list | grep tftp tftp: on 4、启动服务Xinetd# /etc/init.d/xinetd
start 5、验证tftp是否启动成功并监听本地69端口[root@rhel1 ~]#
netstat -anup | grep 69udp 0
0 0.0.0.0:69
0.0.0.0:*
15763/xinetd 6、测试上传和下载tftp -i
192.168.1.201 put TFTPServ.CNTtftp -i
192.168.1.201 get vm-tool.tar.gz
本文出自 “lihongweibj” 博客,请务必保留此出处http://lihongweibj.blog.51cto.com/6235038/1659588
tftp-server2、检查是否开机启动# chkconfig --list |
grep xinetxinetd 0:off 1:off
2:off 3:on 4:on
5:on 6:offxinetd based
services: chargen-dgram: off chargen-stream: off cvs: off daytime-dgram: off daytime-stream: off discard-dgram: off discard-stream: off echo-dgram: off echo-stream: off rsync: off tcpmux-server: off time-dgram: off time-stream: off3、配置 # vim
/etc/xinetd.d/tftp service tftp{ socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /var/lib/tftpboot
-c 文件存放目录 RHEL5的目录为 /tftp/boot 可自定义 -c 允许上传 disable = no per_source = 11 cps = 100 2 flags = IPv4}#
chkconfig tftp on 也可已直接通过命令将服务改为开机启动 [root@rhel1 ~]#
chkconfig --list | grep tftp tftp: on 4、启动服务Xinetd# /etc/init.d/xinetd
start 5、验证tftp是否启动成功并监听本地69端口[root@rhel1 ~]#
netstat -anup | grep 69udp 0
0 0.0.0.0:69
0.0.0.0:*
15763/xinetd 6、测试上传和下载tftp -i
192.168.1.201 put TFTPServ.CNTtftp -i
192.168.1.201 get vm-tool.tar.gz
本文出自 “lihongweibj” 博客,请务必保留此出处http://lihongweibj.blog.51cto.com/6235038/1659588
相关文章推荐
- linux下lvs搭建负载均衡集群
- linux下lvs搭建负载均衡集群
- Linux下配置ssh无密码登陆
- Linux C 文件的输入/输出操作
- 转载 修改 Linux 内核 DM9000 支持 tiny210 开发板
- 分析Linux下如何运行一个可执行文件?
- Linux内核中ioremap映射的透彻理解
- linux:每天学习一个命令——清屏
- Linux查看程序端口占用情况
- Linux用户管理(4)
- 串口调试小节之三 Linux串口应用层编程注意
- centos7 配置虚拟交换机(物理交换机truck端口设置)(使用brctl)
- 阿里云CENTOS服务器挂载数据盘
- linux下mysql的源码安装
- LINUX下导入、导出MYSQL数据库命令
- linux下mysql的源码安装
- Linux环境下安装codeblock
- 如何在CentOS/RHEL中安装基于Web的监控系统 linux-dash
- linux的定时计划任务Crontab
- Linux中修改环境变量及生效方法