TFTP或 Trivial File Transfer Protocol
是一个用于通过网络传输上传或下载文件的简单协议。TFTP是FTP协议的简化版本,使用客户机和服务器体系结构。默认情况下,Windows操作系统不附带TFPT客户机,但为TFTP客户机提供了方便的安装。由于TFTP是作为Windows操作系统的一项功能提供的,因此这也称为启用TFTP客户机。即使本教程是为Windows 10编写的,所有这些说明也可以轻松地应用于其他Windows版本,如Windows XP、Windows Vista、Windows 7、Windows 8、Windows Server 2002、Windows Server 2008、Windows Server 2012、Windows Server 2016等。
从Windows功能启用/安装TFTP客户端
TFTP客户机或命令可以使用GUI从Windows功能安装。首先,我们将从 Control Panel -> All Control Panel Items -> Programs and Features
. 我们将看到下面的屏幕。在那里我们将点击 turn Windows features on or off
.
![图片[1]-如何在Windows10中启用/安装TFTP客户端?-yiteyi-C++库](https://www.yiteyi.com/wp-content/uploads/2020/10/windowstect_image-60.png)
在那里,我们将看到Windows功能并导航到 TFTP Client
部分如下。我们将检查TFTP客户端的chekbox并单击 OK
.
![图片[2]-如何在Windows10中启用/安装TFTP客户端?-yiteyi-C++库](https://www.yiteyi.com/wp-content/uploads/2020/10/windowstect_image-67.png)
在安装TFTP客户机的过程中,您将看到以下屏幕。
![图片[3]-如何在Windows10中启用/安装TFTP客户端?-yiteyi-C++库](https://www.yiteyi.com/wp-content/uploads/2020/10/windowstect_image-62.png)
使用MS-DOS中的pkgmgr命令启用/安装TFTP客户端
我们还可以使用 pkgmgr
命令。我们还将提供 /ui:
通过键入FTP客户端包名称 TFTPClient
就像下面一样。
> pkgmgr /ui:"TFTPClient"
使用MS-DOS中的dism命令启用/安装TFTP客户端
dism
是一个常用命令,可用于管理与系统相关的备份、库、应用程序、服务等。dism命令可用于在Windows中安装tftp客户端。这个 /online
和 /Enable-Feature
应使用 /FeatureName:
参数如下。
> dism /online /Enable-Feature /FeatureName:TFTPClient
使用PowerShell中的Install WindowsFeature启用/安装TFTP客户端
Powershell提供 Install-WindowsFeature
commandlet以启用或安装TFTP客户机是其中之一的windows功能。TFTP客户机名为 TFTP-Client
安装WindowsFeature命令。
PS> Install-WindowsFeature -name "TFTP-Client"