Windows Server 2016 下使用 FileZilla Server 安装搭建 FTP 服务
一、安装 Filezilla Server
下载最新版本的 Filezilla Server:
https://filezilla-project.org/download.php?type=server 。
在本地也需要安装 FileZilla Client :
https://filezilla-project.org/download.php?type=client
![](https://i-blog.csdnimg.cn/blog_migrate/fe14e202bfd22e085916979331256125.png)
二、配置FTP端口及被动模式防火墙访问策略
![](https://i-blog.csdnimg.cn/blog_migrate/356630bec7471c262921f54d89190557.png)
这里端口和上述防火墙中设置的端口要一致,正常规则中默认是 21,被动模式下的端口也需要在防火墙中开放。
![](https://i-blog.csdnimg.cn/blog_migrate/d209c47c6b4b064134477df67a6307a1.png)
由于阿里云的安全策略高于Windows防火墙,还需要在阿里云控制台中,配置ECS的安全组。安全组规则中需要开放在被动模式中使用的端口。
至此,FTP的网络服务设置完成。
三、设置FTP资源
1.配置TLS证书
![](https://i-blog.csdnimg.cn/blog_migrate/a8ba573e0b639a38f88f5db0fad59fc0.png)
2.点击 图标,设置账户
点击 Add 添加用户后,点勾 Password 并输入密码
![](https://i-blog.csdnimg.cn/blog_migrate/ba4c00d65de77cfe0b508d771f2ac4a1.png)
3.设置目录,ftp 只能对这个目录有权限
![](https://i-blog.csdnimg.cn/blog_migrate/c88629564148c54959fe82a2b813ef4e.png)