在Windows Server 2008 R2上设置FTP 服务
微软有些时候也挺傻的,刚配置了一个windows server 2008 R2的FTP服务,突然有种想笑的冲动。。。。
具体过程如下:
- 安装 相关的服务器角色
Install the Web Server role with the IIS Management Console and FTP Server role services:
- 建立一个FTP站点
Create a new FTP Site:
- 绑定IP地址和端口
Setup the site with the default bindings and choose Allow SSL if you don’t plan on deploying a certificate:
- 设置访问权限
Configure user permissions and basic or anonymous permission. If your server is connected to your domain you can specify domain users, otherwise they must be local user accounts:
- 最精彩的部分来了,虽然在防火墙的设置里面已经有了FTP Server的Exception,但是其实他并没有真正的允许任何访问,不相信的可以试试,直到这步,本机测试一切正常,但外网无法连接, 必须要手动指定!
Finally you’ll have to configure your server’s firewall rules to allow access. Personally, I think Microsoft’s done a great job up until this point… it’s a shame it couldn’t last. Disregard any existing FTP firewall rules; although they should be enabled, they don’t actually allow access! Run Allow a Program Through Windows Firewall and grant access to C:\Windows\System32\svchost.exe - 搞定收工