Ubuntu下安装tftp服务器配置
2010-04-15 08:29
489 查看
Ubuntu下安装tftp服务器配置
1、安装server与client
apt-get install tftpd-hpa tftp-hpa xinetd
2、删除standalone的启动方式
update-rc.d -f tftpd-hpa remove
3、新建tftpd目录并修改其属性
mkdir -p /tftpboot
chmod 777 /tftpboot
4、修改配置文件/etc/default/tftpd-hpa
修改为:
RUN_DAEMON="no"
OPTIONS="-l -c -s /tftpboot"
注意:这里默认是没有-c的,-c为可创建新文件,若无此参数,put命令则可能出现错误提示,此时只能复盖原有文件不能创建新文件; 并且get时会出现“TFTP Error code 2: Only absolute filenames allowed”的错误。
5、新建xinetd启动文件
gedit /etc/xinetd.d/tftp &
内容如下:
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
6、修改/etc/inetd.conf文件
修改为:
tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /tftpboot
7、启动服务
重新启动xinetd服务
/etc/init.d/xinetd restart
重新加载inetd进程
/etc/init.d/inetd reload
启动tftp服务器
in.tftpd -l /tftpboot
8、测试
tftp localhost
tftp localhost
tftp> get zImage_N35
tftp>
zImage_N35是之前放入tftp目录下的文件,执行get zImage_N35命令后在当前目录下多了zImage_N35文件。Tftp配置成功。
1、安装server与client
apt-get install tftpd-hpa tftp-hpa xinetd
2、删除standalone的启动方式
update-rc.d -f tftpd-hpa remove
3、新建tftpd目录并修改其属性
mkdir -p /tftpboot
chmod 777 /tftpboot
4、修改配置文件/etc/default/tftpd-hpa
修改为:
RUN_DAEMON="no"
OPTIONS="-l -c -s /tftpboot"
注意:这里默认是没有-c的,-c为可创建新文件,若无此参数,put命令则可能出现错误提示,此时只能复盖原有文件不能创建新文件; 并且get时会出现“TFTP Error code 2: Only absolute filenames allowed”的错误。
5、新建xinetd启动文件
gedit /etc/xinetd.d/tftp &
内容如下:
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
6、修改/etc/inetd.conf文件
修改为:
tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /tftpboot
7、启动服务
重新启动xinetd服务
/etc/init.d/xinetd restart
重新加载inetd进程
/etc/init.d/inetd reload
启动tftp服务器
in.tftpd -l /tftpboot
8、测试
tftp localhost
tftp localhost
tftp> get zImage_N35
tftp>
zImage_N35是之前放入tftp目录下的文件,执行get zImage_N35命令后在当前目录下多了zImage_N35文件。Tftp配置成功。
相关文章推荐
- ubuntu tftp服务器搭建/安装/配置
- UBuntu 14.04下安装tftp服务器以及相关配置
- 如何在Ubuntu下搭建tftp服务器(最简单的安装配置)
- 如何在Ubuntu下搭建tftp服务器(最简单的安装配置)
- Ubuntu10.10下安装配置tftp服务器
- [3]_嵌入式开发环境搭建1_在ubuntu16.04.3 安装配置nfs 和 tftp服务器
- Ubuntu-14.04下安装、配置tftp服务器
- Ubuntu安装配置TFTP服务器
- ubuntu tftp-server 服务器安装与配置
- Ubuntu-12.04下安装、配置tftp服务器的简易操作方法
- 阿里云服务器 ECS Ubuntu系统安装配置
- Ubuntu 12.04 Nfs 服务器和客户端的安装和配置
- ubuntu下SVN服务器安装配置
- 在debian下安装配置tftp服务器
- ubuntu 安装配置 gerrit 服务器 [ HTTP 认证 ]
- Ubuntu下配置TFTP服务器
- ubuntu 10.04下安装 tftp 服务器
- tftp服务器的安装与配置
- linux下安装配置tftp服务器