FileZilla 是一个流行的FTP应用程序,您可以使用它通过文件传输协议 ( FTP ) 连接到其他计算机。使用FTP,您无需担心兼容性,因为该协议是标准的,并且任何可以处理FTP客户端的操作系统都支持该协议。
之前,我写过如何使用 IIS 设置您自己的 FTP 服务器(how to setup your own FTP server using IIS),在本教程中,我们将向您展示如何使用名为FileZilla的免费软件设置您自己的(FileZilla)FTP服务器。从以下 URL下载服务器程序:http: (Download)http://filezilla-project.org。
安装 FileZilla
服务器软件实际上很容易安装。有些屏幕很复杂,但您不必担心,因为您可以使用默认设置,一切正常。
在启动设置(Startup settings)屏幕上,您可以坚持使用默认设置或根据需要更改管理端口。此端口仅用于管理服务器,不用于FTP客户端。
最后,它会自动填写连接服务器的详细信息,应该是 localhost 和管理界面的端口号。密码也应该为空。
配置 FileZilla 服务器
连接到服务器后,您将看到如下所示的屏幕。它将为您提供有关服务器的一些基本信息,并自动检测您是否在NAT路由器后面。
您需要做的第一件事是创建一个FTP用户帐户。单击编辑(Edit )菜单并选择用户(Users):
在“常规(General)”页面上,继续并单击最右侧的“添加(Add)”按钮。
输入(Enter)用户名,然后点击确定:
要分配密码,请选中密码(Password)框,然后输入用户的密码。
我们完成了添加用户。现在要共享目录,请单击“共享文件夹(Shared folders)”,然后浏览要共享的文件夹:
为用户设置(Set)权限,如果您不希望其他用户修改您的文件和目录,请确保取消选中(uncheck )写入(write )和删除。(delete )
如果您认为您的Internet(Internet)连接会受到客户端的影响,您可以设置下载速度限制。如果您想控制可用带宽量,这是理想的选择:
打开 IP 过滤以防止 IP 地址连接到您的服务器。
就是这样!您现在有一个FTP服务器。在向防火墙添加例外以允许FileZilla(FileZilla)连接之前,您将无法连接到它。阅读(Read)我关于如何在 Windows 中允许应用程序通过防火墙的(allow an app through the firewall in Windows)帖子。如果您将FileZilla安装到默认位置,则需要允许C:\Program Files(x86)\FileZilla Server\FileZilla Server.exe进入例外列表。
您还需要了解一些有关端口转发的知识,以便用户可以从您的本地LAN网络外部进行连接。如果只有网络上的人可以连接到它,那么设置FTP服务器是毫无意义的。
如果您在家中进行设置,则还需要启用被动模式设置( Passive mode settings)。单击编辑(Edit),然后单击设置(Settings)。我建议谷歌搜索一下以了解此处使用哪些选项,因为它们会根据您的设置而有所不同。
但是,一旦我打开防火墙端口,我就可以使用网络上另一台本地计算机的命令提示符轻松连接,如下所示:
我输入了我的用户名和密码并已连接!然后我使用ls命令列出了我允许自己访问的目录的内容。同样(Again),如果您想传输文件等,您可以通过 Google 了解如何在命令提示符下使用FTP命令。享受吧!(FTP)
How to Create an FTP Server using FileZilla
FileZilla is a popular FTP application that you can use to connect to othеr computers using file transfer prоtocol (FTP). With FTР you don’t need to worry about compatibility since the protocol is standard аnd supported by any OS that can handle an FTP client.
Previously, I wrote how to setup your own FTP server using IIS and in this tutorial we will show you how to setup your own FTP server using the free software called FileZilla. Download the server program from this URL: http://filezilla-project.org.
Install FileZilla
The server software is actually very easy to install. Some of the screens are complicated, but you don’t have to worry because you can just go with the defaults and everything works fine.
On the Startup settings screen, you can stick with the defaults or change the admin port if you like. This port is only used to administer the server, not for FTP clients.
At the end, it’ll automatically fill in the details to connect to the server, which should be localhost and the port number for the admin interface. The password should be blank too.
Configure FileZilla Server
Once connected to the server, you’ll get a screen like below. It’ll give you some basic info about the server and also auto-detect if you are behind a NAT router.
The first thing that you will need to do is create an FTP user account. Click the Edit menu and choose Users:
On the General page, go ahead and click on the Add button at the far right.
Enter the name of the user then hit OK:
To assign a password, check the Password box and then type in a password for the user.
We’re done adding a user. Now to share a directory click “Shared folders” then browse for the folders that you want to share:
Set the permission for the users, make sure to uncheck write and delete if you don’t want other users to modify your files and directories.
You may set the download speed limits if you feel your Internet connection will be affected by your clients. This is ideal if you want to control the amount of usable bandwidth:
Turn on IP filtering to prevent IP addresses from connecting to your server.
That’s it! You now have an FTP server. You won’t be able to connect to it until you add an exception to your firewall to allow connections for FileZilla. Read my post on how to allow an app through the firewall in Windows. If you installed FileZilla to the default location, you need to allow C:\Program Files(x86)\FileZilla Server\FileZilla Server.exe to the exceptions list.
You’ll also need to learn a little bit about port forwarding, so that users can connect from outside just your local LAN network. It’s quite pointless to setup an FTP server if only people on your network can connect to it.
If you’re setting this up at home, you’ll need to enable Passive mode settings also. Click on Edit and then Settings. I suggest Googling a bit to understand what options to use here as they will vary depending on your setup.
However, once I opened the firewall ports, I was able to connect easily using the command prompt from another local computer on my network as you can see below:
I typed in my username and password and was connected! I then used the ls command to list out the contents of the directory that I gave myself access to. Again, you can Google on how to use the FTP commands from the command prompt if you want to transfer files, etc. Enjoy!