如何在Windows中连接到FTP服务器(无需额外的软件)

If you need to access an FTP server, you can install dedicated FTP clients with lots of features –but you don’t necessarily have to. Windows itself offers several ways for connecting to an FTP server, allowing you to download and upload files in a pinch.

如果您需要访问FTP服务器,则可以安装具有很多功能的专用FTP客户端,但不一定必须这样做。 Windows本身提供了几种连接到FTP服务器的方式,使您可以少量下载和上传文件。

如何在Windows的文件资源管理器中访问FTP服务器 (How to Access FTP Servers in Windows’ File Explorer)

The Windows file manager–known as File Explorer on Windows 10 and 8, and Windows Explorer on Windows 7–allows you to connect to FTP servers.

Windows文件管理器(在Windows 10和8上称为文件资源管理器,在Windows 7上称为Windows资源管理器)使您可以连接到FTP服务器。

To connect to an FTP server, open a File Explorer or Windows Explorer window, click the “This PC” or “Computer”. Right-click in the right pane and select “Add a network location”.

要连接到FTP服务器,请打开文件资源管理器或Windows资源管理器窗口,单击“此PC”或“计算机”。 右键单击右窗格,然后选择“添加网络位置”。

Go through the wizard that appears and select “Choose a custom network location”.

浏览出现的向导,然后选择“选择自定义网络位置”。

In the “Specify the location of your website” dialog, enter the address of the ftp server in the form ftp://server.com .

在“指定网站的位置”对话框中,以ftp://server.com的形式输入ftp服务器的地址。

For example, Microsoft’s FTP server is ftp.microsoft.com, so we’d enter ftp://ftp.microsoft.com here if we wanted to connect to that particular server.

例如,Microsoft的FTP服务器是ftp.microsoft.com,因此,如果要连接到该特定服务器,请在此处输入ftp://ftp.microsoft.com

If you don’t have a username and password, you can often check the “Log on anonymously” box and sign into the server without a username and password. This gives you limited access to the server–you can generally download publicly available files but not upload files, for example.

如果您没有用户名和密码,则通常可以选中“匿名登录”框,然后使用用户名和密码登录服务器。 这使您只能访问服务器-例如,通常您可以下载公用文件,但不能上传文件。

If you do have a username and password, enter your username here. The first time you connect to the FTP server, you’ll be prompted to enter your password.

如果您确实有用户名和密码,请在此处输入您的用户名。 第一次连接FTP服务器时,系统会提示您输入密码。

You’ll now be asked to enter a name for the network location. Enter whatever name you like–the FTP site will appear with this name so you can easily remember which is which.

现在将要求您输入网络位置的名称。 输入您喜欢的名称-FTP站点将以该名称显示,因此您可以轻松记住哪个名称。

When you’re done, the FTP site will appear under “Network locations” in the This PC or Computer pane. Download files and upload files by copying and pasting them to and from this folder.

完成后,FTP站点将出现在“此PC或计算机”窗格中的“网络位置”下。 通过将文件复制到该文件夹​​或从此文件夹粘贴来下载文件和上传文件。

如何在命令提示符下访问FTP服务器 (How to Access FTP Servers in the Command Prompt)

You can also do this with the ftp command in a Command Prompt window. This command is comes built into Windows.

您也可以在“命令提示符”窗口中使用ftp命令执行此操作。 此命令内置于Windows中。

To do this, open a Command Prompt window. On Windows 10 or 8, right-click the Start button or press Windows+X on your keyboard and select “Command Prompt”. On Windows 7, search the Start menu for “Command Prompt”.

为此,请打开“命令提示符”窗口。 在Windows 10或8上,右键单击开始按钮,或在键盘上按Windows + X,然后选择“命令提示符”。 在Windows 7上,在“开始”菜单中搜索“命令提示符”。

Type ftp at the prompt and press Enter. The prompt will change to an ftp> prompt.

在提示符下键入ftp ,然后按Enter。 该提示将变为ftp>提示。

To connect to a server, type open followed by the address of the FTP server. For example, to connect to Microsoft’s FTP server, you’d type:

要连接到服务器,请键入open然后输入FTP服务器的地址。 例如,要连接到Microsoft的FTP服务器,请输入:

open ftp.microsoft.com

You’ll then be prompted for a username. Enter the username and password to connect to the site. If you don’t have one, you can enter “Anonymous” followed by a blank password to see if the FTP server allows anonymous access.

然后将提示您输入用户名。 输入用户名和密码以连接到该站点。 如果没有密码,则可以输入“匿名”,然后输入一个空白密码以查看FTP服务器是否允许匿名访问。

Once you’re connected, you can navigate the FTP server with the dir and cd commands. To view the contents of the current directory, type:

建立连接后,您可以使用dircd命令浏览FTP服务器。 要查看当前目录的内容,请键入:

dir

To change to another directory, type the cd command followed by the name of the directory. For example, you’d type the following command to change to a directory named “example”:

要更改到另一个目录,请键入cd命令,后跟目录名称。 例如,您将键入以下命令以更改为名为“ example”的目录:

cd example

To upload or download files, use the get and push commands.

要上传或下载文件,请使用getpush命令。

For example, to download a file named example.txt in the current FTP folder, you’d type:

例如,要在当前的FTP文件夹中下载名为example.txt的文件,请输入:

get example.txt

To upload a file stored on your desktop named example.txt to the FTP server, you’d type:

要将存储在桌面上的名为example.txt的文件上传到FTP服务器,请输入:

put "C:\Users\YOURNAME\Desktop\example.txt"

When you’re done, just type the following command and press Enter to close the connection:

完成后,只需键入以下命令,然后按Enter键即可关闭连接:

quit

While apps like Cyberduck or FileZilla offer plenty of advanced features that Windows’ built-in options don’t, both of the above are great options for basic FTP browsing, uploading, and downloading.

尽管诸如Cyber​​duckFileZilla之类的应用程序提供了Windows内置选项所没有的许多高级功能,但以上两种都是基本的FTP浏览,上传和下载的绝佳选择。

翻译自: https://www.howtogeek.com/272176/how-to-connect-to-ftp-servers-in-windows-without-extra-software/

  • 11
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Windows Server 2016配置FTP共享服务器的步骤如下: 1. 打开服务器管理器(Server Manager)。 2. 在左侧导航栏,选择“添加角色和功能”(Add Roles and Features)。 3. 在“添加角色和功能向导”,点击“下一步”(Next)。 4. 选择“基于角色或基于功能的安装”(Role-based or feature-based installation)并点击“下一步”(Next)。 5. 在服务器选择页面,选择你想要安装FTP服务器的服务器并点击“下一步”(Next)。 6. 在角色选择页面,选择“Web服务器(IIS)”(Web Server (IIS))并展开。 7. 展开“Web服务器”(Web Server)并选择“FTP服务器”(FTP Server)。 8. 点击“添加功能”(Add Features)。 9. 点击“下一步”(Next)。 10. 在FTP服务器页面,点击“下一步”(Next)。 11. 在角色服务页面,点击“下一步”(Next)。 12. 在确认安装选择页面,点击“安装”(Install)进行安装。 13. 安装完成后,关闭向导。 14. 打开“Internet信息服务(IIS)管理器”。 15. 在左侧导航栏,展开服务器名称,然后展开“站点”(Sites)。 16. 右键单击默认网站(Default Web Site),选择“添加FTP站点”(Add FTP Site)。 17. 在FTP站点添加向导,输入FTP站点的描述和路径。 18. 指定绑定和SSL设置,可以选择是否启用SSL。 19. 输入FTP站点的访问权限和身份验证设置。 20. 完成向导后,点击“完成”(Finish)。 现在,你已经成功配置了FTP共享服务器,你可以通过FTP客户端访问并管理FTP站点上的文件。请确保在防火墙打开FTP端口(默认端口为21),以便外部客户端能够连接FTP服务器

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值