问题描述
我需要一些帮助在我的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
我还在Azure Portal上为标准端口21配置的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 ',由罗纳德·威登伯格.他回响了大卫的回答.这些是他经历的阶段:
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评估版".
- 计算机启动后,您可以通过管理门户底部的connect选项将RDP导入其中.
- 进入时,需要配置IIS.所需步骤的摘要:
- 将"Web服务器(IIS)"角色添加到服务器.
- 添加所需的IIS功能.
- 在管理门户中使用公用和专用端口80将TCP端点添加到您的VM.
- First of all, you need a virtual machine. I needed a Windows machine with a SQL Server database so I chose 'Microsoft SQL Server 2012 Evaluation Edition' from the available templates.
- Once the machine has booted, you can RDP into it via the connect option at the bottom of the management portal.
- When you're in, you need to configure IIS. A summary of the required steps:
- Add the 'Web Server (IIS)' role to the server.
- Add the IIS features you need.
- Add a TCP endpoint to your VM in the management portal with public and private port 80.
-
net stop ftpsvc
-
net start ftpsvc
net stop 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!