用FileZilla搭建FTP服务器及相关问题 小鱼儿 2022-06-15 03:57 181阅读 0赞 注意版本是否一直,这是2017年5月份的最新版 * 官方资源下载链接: [客户端][Link 1],或者直接点击下载“[FileZilla\_3.24.0\_win64-setup.exe][FileZilla_3.24.0_win64-setup.exe]”; [服务端][Link 2],或者直接点击下载“[FileZilla\_Server-0\_9\_60\_2.exe][FileZilla_Server-0_9_60_2.exe]”; * 在服务器上安装并配置服务端: 安装过程这里不再赘述,一直下一步,在跳出弹窗时勾选“Always connect to this server”,然后点击“Connect”即可(密码可自行设置或者为空); ![Center][] **默认安装完会有如下错误提示:** ![Center 1][] 一、问题1: 问题与警告 问题:`You appear to be behind a NAT router. Please configure the passive mode settings and forward a range of ports in your router.` 解决方法: “Edit”-“Setting”或直接点击设置按钮(齿轮); 选择“Passive mode settings”选项卡,勾选“Use the following IP:”并填写服务器的IP地址(注外网地址),之后点击“OK”保存; ![Center 2][] **二、问题2:** 另外上面的设置中如果没有设置“`Use custom port range`”,那么在客户端连接服务端读取目录时就会报以下的错误:`响应: 425 Can't open data connection for transfer of "/"` 这个问题主要是由于使用Passive Mode模式造成的。 解决方法:在上面的设置窗口中要勾选该项,设置端口范围,并在后面的防火墙设置中,将端口范围加入到入站端口中。 特别说明:在使用阿里云服务器配置的时候需要在服务器实例面板》安全规则》添加安全规则总设置Ftp的入站端口开放。 阿里云服务器配置参考:[http://blog.csdn.net/u011127019/article/details/72632906][http_blog.csdn.net_u011127019_article_details_72632906] **三、问题3(这个警告可以忽略不考虑):** 警告:`Warning: FTP over TLS is not enabled, users cannot securely log in.` 解决方法:启用TLS传输,具体操作如下: “Edit”-“Setting”或直接点击设置按钮(齿轮); 选择“FTP over TLS settings”选项卡,点击“Generate new certificate...”; 生成验证时Key size”根据自己的喜好选择即可,其他信息可以根据自己的情况随意填写,然后选择保存地址(最好放到安装路径下) “; ![Center 3][] 名称默认为“certificate.crt”就好,最终选择生成; 提示“Certificate generated successfully”则说明生成没有问题,点击“确定”关闭弹窗; 点击“OK”保存设置; 之后的信息提示不再出现警告。 四、接下来就可以配置groups和users * 不做详细解说,只需注意: 1. 添加用户时为用户分配组; 2. 为用户分配文件夹的权限,并指定Home文件夹(即“Set as home dir”,路径前出现“H”即可),如下图; ![bVL33Z_w_651_h_431][] * 端口设置 默认端口:21 加密端口:990 自定义的端口范围:10000-10200(根据自己的情况更改)可以自行设置,但是需要注意的是无论使用什么端口,在后面一定要添加到防火墙的入站规则中去。 * 在本地安装客户端 通过客户端连接服务器就可以了。初次连接时会提示如下,选择信任,确定即可。 更多: [阿里云服务器Svn-Server无法连接,阿里云服务器SVNServer配置][http_blog.csdn.net_u011127019_article_details_72632906] [调试移动端网页工具Weinre使用整理][Weinre] [使用Git获取最新版本到本地][Git] [Link 1]: https://www.filezilla.cn/download/client [FileZilla_3.24.0_win64-setup.exe]: http://download.filezilla.cn/client/windows/FileZilla_3.24.0_win64-setup.exe [Link 2]: https://www.filezilla.cn/download/server [FileZilla_Server-0_9_60_2.exe]: http://download.filezilla.cn/server/windows/FileZilla_Server-0_9_60_2.exe [Center]: /images/20220615/63d8a68a267f4b899e81f19f0c528b95.png [Center 1]: /images/20220615/ad85ea241b1c4bc98bb24ecba8129054.png [Center 2]: /images/20220615/f851425d533e44239c6db05fcf2e90e3.png [http_blog.csdn.net_u011127019_article_details_72632906]: http://blog.csdn.net/u011127019/article/details/72632906 [Center 3]: /images/20220615/4383ce63880f4b4bb234eccf7468bafa.png [bVL33Z_w_651_h_431]: /images/20220615/a2843d94c1d5414ca61d44ac6d7e0f3b.png [Weinre]: http://blog.csdn.net/u011127019/article/details/56014390 [Git]: http://blog.csdn.net/u011127019/article/details/55044061
还没有评论,来说两句吧...