Virtualbox 和 Ruby on Rails 应用程序:如何访问应用程序的文件
对于 Web 开发和虚拟化来说,我刚刚使用 Virtualbox 在我的计算机上安装了 Ruby On Rails Turnkey 设备。
安装很简单,但有件事我作为新手不明白。
通过 Vista 的资源管理器,我无法找到我使用 Web Shell 创建的 2 个 ROR 应用程序的文件。
我知道我在安装 ROR 设备时创建了一个新硬盘。我只是想知道我是否可以通过 Vista 的资源管理器访问这些文件(如果可能的话) (我知道我可以通过 Web Shell 来完成)。
.vdi 文件(包含 ROR 设备硬盘驱动器的文件)是否像黑匣子一样工作?我只是看不到这个 .vdi 文件中有多少个文件。
附加信息: 操作系统:Vista
提前感谢您的回答。
New to webdevelopment and virtualization I just installed the Ruby On Rails Turnkey appliance on my computer using Virtualbox.
The installation was easy but there is one thing the newbie I am do not understand.
Via Vista's Explorer I just can't find the files of the 2 ROR applications I created with the Web Shell.
I know I created one new hard drive when installing the ROR appliance. I was just wondering whether I can access to these files via Vista's Explorer (if it is possible)
(I know I can do it via the Web Shell).
Does the .vdi file (the file containing the ROR appliance hard drive) act like a black box ? I just can't see there how many files are in this .vdi file.
Additional info :
OS : Vista
Thanks in advance for your answers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
默认情况下,Rails 设备(以及任何 TurnkeyLinux 设备)不会共享文件。最简单的进入方法是使用 SSH/SFTP 客户端访问系统上的文件夹。
SSH/SFTP 连接
对于我的交钥匙盒,我使用 FileZilla 作为
< 进行连接a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6b1904041f2b5a5b455b4559455a5e">[电子邮件受保护]:22
。请注意,实际的 IP 地址将会更改,但在 Turnkey 来宾虚拟机启动后,您应该会在蓝色启动屏幕上看到它。端口转发 - 最后的手段
如果由于某种原因您无法访问该屏幕上列出的 IP 地址,那么您可以设置 端口转发位于设备 > 下的 Virtualbox 设置中。网络适配器>端口转发。在这种情况下,您会将主机端口 2222 转发到访客端口 22。完成后,重试 FileZilla 连接到
root@localhost:22
。The Rails appliance (and any TurnkeyLinux appliance) isn't going to share files by default. The easiest way for you to get in will be to use an SSH/SFTP client to access the folders on the system.
SSH/SFTP connection
For my Turnkey boxes I use FileZilla to connect as
[email protected]:22
. Note that the actual IP address will change but you should see it on the blue splash screen after your Turnkey guest VM has booted.Port Forwarding - last resort
If for some reason you can't access the IP address listed on that screen then you can set up port forwarding in the Virtualbox settings under Devices > Network Adapters > Port Forwarding. In that case you'll forward host port 2222 to guest port 22. Once that's done retry a FileZilla connection to
root@localhost:22
.我正在使用另一种解决方案(没有 Turnkey,只是 VirtualBox 中的 Ubuntu,但谁阻止您安装其他软件?),虚拟机上的 Samba 服务器。在 Windows 上,我将 samba 共享安装为网络驱动器,这样我就可以像本地文件一样访问它。
I'm using an another solution (no Turnkey, just Ubuntu in VirtualBox, but who prevent you from installing additional software?), Samba server on virtual machine. On windows I mount samba share as network drive, so I can access it like local files.