问题描述
我需要一些帮助,在我的 Azure VM 实例上设置 FTP.
I need some help setting up FTP on my Azure VM instance.
VM 是 Windows Server 2012 R2.我已经设置了 Web 服务器角色并在 IIS 中创建了一个 FTP 站点.我已经确认我可以使用
The VM is Windows Server 2012 R2. I have set up the Web Server Role and created an FTP site in IIS. I have confirmed that I can access the FTP server with
ftp command: open localhost
我还在为标准端口 21 配置的 Azure 门户上为 VM 配置了 FTP 端点.
I have also configured an FTP end point for the VM on the Azure Portal configured for the standard port 21.
最后,我创建了一个防火墙规则,允许所有流量进/出端口 21.
Lastly, I have created a firewall rule to allow all traffic in/out of port 21.
现在,当我尝试从我的家用机器 FTP 到它时,我可以看到服务器公共 DNS 名称正在解析为正确的 IP 和端口,但无法建立连接.
Now when I try to FTP to it from my home machine I can see the server public DNS name is resolving to the proper IP and port but no connection can be made.
我是否遗漏了某个配置步骤?
Am I missing a configuration step somewhere?
谢谢
推荐答案
2012 年 7 月有一个很棒的演练 '在 Windows Azure VM 中的 IIS 7.5 上托管 FTP' by Ronald Wildenberg 关于这个.他回应了大卫的回答.这些是他经历的阶段:
There's a great walkthrough from July 2012 'Hosting FTP on IIS 7.5 in a Windows Azure VM' by Ronald Wildenberg about this. He echoes David's answer. These are the stages he goes through:
- 首先,您需要一个虚拟机.我需要一台带有 SQL Server 数据库的 Windows 计算机,因此我从可用模板中选择了Microsoft SQL Server 2012 评估版".
- 机器启动后,您可以通过管理门户底部的连接选项 RDP 进入它.
- 进入后,您需要配置 IIS.所需步骤的摘要:
- 将Web 服务器 (IIS)"角色添加到服务器.
- 添加您需要的 IIS 功能.
- 使用公共和专用端口 80 在管理门户中将 TCP 端点添加到您的 VM.
网络停止ftpsvc
net start ftpsvc
值得遵循这些步骤 在原始文章中 不仅是因为他为每个步骤都提供了有用的屏幕截图,但我认为值得在这里广泛引用以防万一.该文章还提到主动 FTP 与被动 FTP,一个明确的解释值得一读.
It's worth following these steps in the original article not least because he includes useful screenshots for each step, but I thought it was worth quoting extensively here just-in-case. The article also mentions Active FTP vs. Passive FTP, a Definitive Explanation as worth reading.
如果我能报告在执行这些步骤后,您的基于 Azure VM 的 FTP 服务器将正常工作且可访问,那就太好了.但不幸的是上述步骤没有为我解决 :-(
It would be great if I could report that after following these steps your Azure VM based FTP server will be working and accessible. But unfortunately the steps above did not fix it for me :-(
这篇关于如何在 Azure VM 上设置 FTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!