ubuntu下建TFTP
来源:互联网 发布:哪里可以领爱淘宝红包 编辑:程序博客网 时间:2024/06/04 20:07
通过不同启动方式解决:Error code 2: Only absolutefilenames allowed。
以下在Ubuntu 10.04 或10.10下测试通过
1、安装Ubuntutftp服务版和客户端
apt-get install tftpd-hpa tftp-hpaxinetd(我的系统已经xinet默认就有)
2,确认tftpd服务已经启动
status tftpd-hpa
如果没有启动,执行:
service tftpd-hpastart
或
cd /etc/init.d
./tftpd-hpa start
3,确认tftp启动方式:
4、新建tftpd主目录
cd /
mkdir -p /tftpboot
chmod 777tftpboot
cd tftpboot
touch 1.txt
5、修改启动配置文件
启动方式一:xinetd
gedit/etc/xinetd.d/tftp
service tftp
{
disable = no
socket_type = dgram
wait = no
user = root
protocol = udp
server = /usr/sbin/in.tftpd
server_args =
per_source
cps
flags
}
启动方式二:tftpd-hpa
gedit/etc/default/tftpd-hpa
#Defaults for tftpd-hpa
#Ubuntu 10.04 以前版本用这个(如果是这个,最后4行用#注释或 除)
RUN_DAEMON="yes"
OPTIONS="-l -c -s /tftpboot"
#Ubuntu 10.04 and 以后用这个(如果是这个,之前两行用#注释或 除)
TFTP_USERNAME="tftp"TFTP_DIRECTORY="/tftpboot"TFTP_ADDRESS="0.0.0.0:69"TFTP_OPTIONS="-l -c -s"
6、重新启动服务
如果是启动方式一:执行/etc/init.d/xinetdrestart
如果是启动方式二:执行service tftpd-hparestart
7、测试tftpd服务是否成功
tftplocalhost
tftp> get1.txt
tftp> put1.txt
tftp>verbose
Verbose mode on.
tftp>trace
Packet tracing on.
tftp> putkkk.log
sent DATA
received ACK
.........
sent DATA
received ACK
- ubuntu下建TFTP
- ubuntu下建TFTP和NFS
- Ubuntu下安装tftp
- Ubuntu下配置tftp
- ubuntu 下 配置 tftp
- ubuntu下安装tftp
- ubuntu下搭建tftp
- Ubuntu下tftp
- ubuntu下搭建tftp
- ubuntu下搭建tftp服务
- Ubuntu下TFTP的配置
- Ubuntu下建立tftp服务器
- Ubuntu下tftp的安装
- Ubuntu下建立tftp服务器
- Ubuntu下tftp的安装
- ubuntu下的tftp配置
- Ubuntu 10.10 下 TFTP设置
- ubuntu下安装tftp-server
- android:screenOrientation
- Linux:Ethtool
- ubuntu下tftp安装和使用(不成功,…
- linux下VI命令
- tftp服务器最简单安装配置(成功)
- ubuntu下建TFTP
- linux实现NFS(ubuntu)
- uboot环境变量及常用命令【1】
- uboot环境变量及常用命令【2】
- EidtPlus个性化配置
- 解决“Win7系统安装USB-Blaster驱动…
- Linux Shell 中的反引号,单引号,…
- Linux cat命令详解
- linux下mv命令使用方法