当前位置:首页 » 操作系统 » tftplinux

tftplinux

发布时间: 2022-01-24 23:00:22

linux tftp服务器怎么开启

第一步:

我们要确认,LINUX下是不是安装了TFTP-SERVER.

在LINUX下输入:

rpm -q tftp-server

如出现如下回复:

tftp-server-0.39-2 则表示tftp-server已安装.

第二步:

修改TFTP启动脚本:

方法一:

需要修改ftptpd的启动脚本
vi /etc/xinetd.d/tftp
加上disable =no 此时即可启动tfpt服务

方法二:

直接输入:/sbin/chkconfig tftp on

此命令也是在启动脚本中加上disable=no

脚本修改后的效果如下:

第三步:

启动TFTP服务

service xinetd restart

这样我们的服务就启动OK了.

② windows中怎样通过tftp下载linux下的东西 有一条指令 tftp ip get filename 咋用啊

你在WINDOWS里下载一个SSH软件吧,带文件传输功能的。

③ 在Linux操作系统下怎么安装tftpd

以下资料来源网上:
fedora下tftp服务器的安装与配置
总结过程如下:

1.下载tftp服务器、客户端tftp和守护进程xinetd三个包
yum install xinetd tftp tftp-server

//xinetd.i386 2:2.3.14-21.fc10
//tftp-0.49-1.fc10.i386.rpm
//tftp-server-0.49-1.fc10.i386.rpm

2.配置vi /etc/xinetd.d/tftp
修改server_args = -s /tftpboot -c,这里的-c一定要加上,否则只能下载不能上传!!!
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot -c
per_source = 11
cps = 100 2
flags = IPv4
}

3.关闭防火墙

4.建立tftp工作目录并修改属性(不修改属性会出现error)
cd /
mkdir tftpboot
chmod 777 -R /tftpboot/

5.开启服务,上传下载文件

######################################

我的配置过程中先后顺序和出现的问题如下:

下载tftp服务客户端tftp和守护进程xinetd
yum install xinetd
yum install tftp tftp-server
//xinetd.i386 2:2.3.14-21.fc10
//tftp-0.49-1.fc10.i386.rpm
//tftp-server-0.49-1.fc10.i386.rpm
关闭防火墙
service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
cd /
mkdir tftpboot
cd tftpboot
cp /etc/inittab /tftpboot/
tftp 172.18.1.90
tftp> get inittab
Transfer timed out.

tftp>quit
[root@localhost tftpboot]# netstat -a|grep tftp
[root@localhost tftpboot]# ls
inittab
[root@localhost tftpboot]# touch aaa
[root@localhost tftpboot]# ls
aaa inittab
[root@localhost tftpboot]# tftp 172.18.1.90
tftp> get aaa
Transfer timed out.

tftp> quit
不知何故出现“Transfer timed out.”的错误提示,想想没有修改tftp配置文件:
[root@localhost tftpboot]# cd /etc/xinetd.d
[root@localhost xinetd.d]# vi tftp
修改保存:
disable=no
server_args=-s /tftpboot/ -c
[root@localhost xinetd.d]# cd /
[root@localhost /]# /etc/init.d/xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@localhost /]# netstat -a | grep tftp
udp 0 0 *:tftp *:*
[root@localhost /]# tftp 172.18.1.90
tftp> get aaa
Error code 1: File not found
tftp> get inittab
Error code 1: File not found
tftp> quit
错误不一样了,以为需要安装tftpd服务器端,yum install tftpd没有源
但这次想起来新建/tftpboot/目录时候没有对该目录权限进行修改,就一切ok了
[root@localhost /]# chmod 777 -R /tftpboot/

[root@localhost /]# tftp 172.18.1.90
tftp> get aaa
tftp> get inittab
tftp> q
[root@localhost /]# ls
aaa boot etc inittab lost+found mnt proc sbin srv tftpboot usr
bin dev home lib media opt root selinux sys tmp var
//根目录出现了aaa和inittab文件,下载成功!
再来试试上传文件:
[root@localhost /]# cd /tftpboot
[root@localhost tftpboot]# ls
aaa inittab
[root@localhost tftpboot]# rm aaa
rm: remove regular empty file `aaa'? y
[root@localhost tftpboot]# ls
inittab
[root@localhost tftpboot]# tftp 172.18.1.90
tftp> put aaa
tftp: aaa: No such file or directory
tftp> put aaa
tftp: aaa: No such file or directory
tftp> q
[root@localhost tftpboot]# cd /
[root@localhost /]# ls
aaa boot etc inittab lost+found mnt proc sbin srv tftpboot usr
bin dev home lib media opt root selinux sys tmp var
[root@localhost /]# tftp 172.18.1.90
tftp> put aaa
tftp> q
[root@localhost /]# cd /tftpboot
[root@localhost tftpboot]# ls
aaa inittab
上传成功!
上面错误原因就是tftp的执行目录要再根目录下进行,因为默认根目录为当前操作的目录

④ 怎么打开 linux tftp服务器

第一步:
我们要确认,LINUX下是不是安装了TFTP-SERVER.
在LINUX下输入:
rpm -q tftp-server
如出现如下回复:
tftp-server-0.39-2 则表示tftp-server已安装.
第二步:
修改TFTP启动脚本:
方法一:
需要修改ftptpd的启动脚本
vi /etc/xinetd.d/tftp
加上 disable =no 此时即可启动tfpt服务
方法二:
直接输入: /sbin/chkconfig tftp on
此命令也是在启动脚本中加上disable=no
脚本修改后的效果如下:

第三步:
启动TFTP服务
service xinetd restart
这样我们的服务就启动OK了.

⑤ 今天我装了tftp 我在linux上运行setup 可以找到tftp,,但我运行netstat -a|grep tftp这个命令什么都没有,

过滤xinetd 有它就行了
你chkconfig --list 可以看到 tftp 在xinetd 下面
还有哦 你要 在xinetd 下面找到tftp的配置文件 才行
将 disable =yse 改成 no
再启动xinetd 就好了
哦对了 光安装 tftp 是没用的 要安装 xinetd 哦
还有最好用 yum 装!!可以解决包的依赖关系!!

⑥ 在Linux中TFTP服务器是什么

第一步:
我们要确认,LINUX下是不是安装了TFTP-SERVER.
在LINUX下输入:
rpm -q tftp-server
如出现如下回复:
tftp-server-0.39-2 则表示tftp-server已安装.
第二步:
修改TFTP启动脚本:
方法一:
需要修改ftptpd的启动脚本
vi /etc/xinetd.d/tftp
加上 disable =no 此时即可启动tfpt服务
方法二:
直接输入: /sbin/chkconfig tftp on
此命令也是在启动脚本中加上disable=no

第三步:
启动TFTP服务
service xinetd restart
这样我们的服务就启动OK了.

TFTP的默认根目录在/tftproot中.

⑦ linux下的tftp怎么使用

tftp命令用在本机和tftp服务器之间使用TFTP协议传输文件。

TFTP是用来下载远程文件的最简单网络协议,它其于UDP协议而实现。嵌入式linux的tftp开发环境包括两个方面:一是linux服务器端的tftp-server支持,二是嵌入式目标系统的tftp-client支持。因为u-boot本身内置支持tftp-client,所以嵌入式目标系统端就不用配置了。下面就详细介绍一下linux服务器端tftp-server的配置。

语法
tftp(选项)(参数)选项
-c:指定与tftp服务器连接成功后,立即要执行的指令;
-m:指定文件传输模式。可以是ASCII或者Binary;
-v:显示指令详细执行过程;
-V:显示指令版本信息。 参数

主机:指定tftp要联机的tftp服务器的ip地址或主机名。

实例

1、安装tftp服务器

需要安装xinetd、tftp和tftp-server 3个软件

如果能上网,通过yum安装:

yum
xinetd
yuminstalltftp
yuminstalltftp-server

如果不能上网,可以直接安装提供的rpm包:

rpm-ivhxinetd-2.3.14-18.fc9.i386.rpm
rpm-ivhtftp-0.48-3.fc9.i386.rpm
rpm-ivhtftp-server-0.48-3.fc9.i386.rpm

2、配置tftp服务器

修改/etc/xinetd.d/tftp文件,将其中的disable=yes改为disable=no。主要是设置TFTP服务器的根目录,开启服务。修改后的文件如下:


tftp
{
socket_type=dgram
protocol=udp
=yes
user=root
server=/usr/sbin/in.tftpd
server_args=-s/home/mike/tftpboot-c
disable=no
per_source=11
cps=1002
flags=IPv4
}

说明:修改项server_args= -s <path> -c,其中<path>处可以改为你的tftp-server的根目录,参数-s指定chroot,-c指定了可以创建文件。

3、启动tftp服务器并关闭防火墙

/etc/
.d/
stop//关闭防火墙
/sbin/servicexinetdstart

servicexinetdrestart
/etc/init.d/xinetdstart

看到启动[OK]就可以了

4、查看tftp服务是否开启


-a|
tftp

显示结果为udp 0 0 *:tftp *:*表明服务已经开启,就表明tftp配置成功了。

5、tftp使用

复制一个文件到tftp服务器目录,然后在主机启动tftp软件,进行简单测试。

tftp192.168.1.2
tftp>get<download
>

tftp>put<uploadfile>
tftp>q

6、tftp命令用法如下

tftpyour-ip-address

进入TFTP操作:

  • connect:连接到远程tftp服务器
  • mode:文件传输模式
  • put:上传文件
  • get:下载文件
  • quit:退出
  • verbose:显示详细的处理信息
  • tarce:显示包路径
  • status:显示当前状态信息
  • binary:二进制传输模式
  • ascii:ascii 传送模式
  • rexmt:设置包传输的超时时间
  • timeout:设置重传的超时时间
  • help:帮助信息
  • ? :帮助信息

7、如果老是出现“AVC Denial, click icon to view”的错误,并不能传输文件,需要作如下修改

修改/etc/sysconfig/selinux,将SELINUX设定为disable,使用命令setenforce 0让selinux配置文件生效。

8、Busybox中tftp命令的用法

命令格式为:

tftp[option]...
[port]

如果要下载或上传文件的话是一定要用这些option的。

-g表示
载文件(get)
-p表示上传文件(put)
-l表示本地文件名(localfile)
-r表示远程主机的文件名(remotefile)

例如,要从远程主机192.168.1.2上下载 embedexpert,则应输入以下命令

tftp-g-rembedexpert192.168.1.2

⑧ linux下tftp命令的使用

以前只记得tftp如何搭建,今天笔试的时候出了一道题,很是畸形,说如何使用tftp命令吧
192.168.1.1上的一个aaa文件传输到linux,然后再执行它笔试的时候没弄对,查了一下,应该为如下:
www.shiwu.com
复制一个文件到tftp服务器目录,然后在主机启动tftp软件,进行简单测试。
tftp
192.168.1.2tftp>get
<download
file>tftp>put
<upload
file>tftp>q后面就是chmod,./之类的
作者
gudesiling

热点内容
诺基亚密码忘了打什么电话 发布:2024-09-17 03:27:09 浏览:555
树深度优先算法 发布:2024-09-17 03:26:58 浏览:472
跳转页源码 发布:2024-09-17 03:13:05 浏览:543
html文件上传表单 发布:2024-09-17 03:08:02 浏览:784
聊天软件编程 发布:2024-09-17 03:00:07 浏览:726
linuxoracle安装路径 发布:2024-09-17 01:57:29 浏览:688
两个安卓手机照片怎么同步 发布:2024-09-17 01:51:53 浏览:207
cf编译后没有黑框跳出来 发布:2024-09-17 01:46:54 浏览:249
安卓怎么禁用应用读取列表 发布:2024-09-17 01:46:45 浏览:524
win10设密码在哪里 发布:2024-09-17 01:33:32 浏览:662