简体   繁体   English

Meteor Vagrant可以卷曲localhost:3000但是windows无法打开localhost:3000 windows 8.1

[英]Meteor Vagrant can curl localhost:3000 but windows cannot open localhost:3000 windows 8.1

Good morning, 早上好,

Working on installing Meteor on windows using the following guide: https://gist.github.com/gabrielhpugliese/5855677 使用以下指南在Windows上安装Meteor: https//gist.github.com/gabrielhpugliese/5855677

As pointed out on other posts its a little dated and I needed to install meteor separately, which I used this guide: Unable to install meteorite on Ubuntu VM 正如其他帖子所指出的那样,它有点过时了,我需要单独安装流星,我使用本指南: 无法在Ubuntu VM上安装meteorite

Currently, my set up can do the following: 目前,我的设置可以执行以下操作:

  • files stay in sync between vagrant and windows 文件在vagrant和windows之间保持同步
  • localhost:3000/ is working on the server localhost:3000 /正在服务器上运行

What I still need help completing: 我还需要帮助完成:

  • when opening localhost:3000/ in my windows browser, I get the "This webpage is not available 当我在Windows浏览器中打开localhost:3000 /时,我得到“此网页不可用

I know that the vagrant VM is correctly serving the app because I opened a new instance of vagrant and curled the localhoust:3000/ 我知道流浪的虚拟机正确地为应用程序提供服务,因为我打开了一个新的流浪者实例并卷曲了当地人:3000 /

来自第二个流浪者实例的卷曲输出

I am actively working in django and node and can successfully run apps locally on :8000 and :8080, I tested the meteor app on those ports but still couldn't connect. 我正积极地在django和node工作,并且可以在本地成功运行应用程序:8000和:8080,我测试了这些端口上的meteor应用程序,但仍然无法连接。 I also created a windows firewall port exception on 3000 but the results didn't change. 我还在3000上创建了一个Windows防火墙端口例外,但结果没有改变。

I know that there is a windows-preview currently out, but that is not working for me and I have an issue being tracked in gitHub. 我知道目前有一个Windows预览,但这对我不起作用,我在gitHub中跟踪了一个问题。

Thank you in advance. 先感谢您。

One thing that might be worth mentioning is it is somewhat possible to use Meteor on windows. 值得一提的是,在Windows上使用Meteor有点可能。

More details here: https://github.com/meteor/meteor/wiki/Preview-of-Meteor-on-Windows . 更多细节在这里: https//github.com/meteor/meteor/wiki/Preview-of-Meteor-on-Windows

With your vagrant machine it sounds like there is a problem with port forwarding on your localhost machine to the VM's ports. 使用您的流浪汉机器,听起来您的localhost机器上的端口转发到VM的端口有问题。

One possible simple way to get passed this is to get your Ubuntu machines IP address and simply load it up using http://<ip address>:3000 . 一种可能的简单方法是获取Ubuntu计算机的IP地址,然后使用http://<ip address>:3000加载它。

I'm not sure why the port forwarding isn't working on your machine. 我不确定为什么端口转发不能在你的机器上运行。 In general the reason is provided when you run vagrant up , if there was an issue. 一般情况下,如果出现问题,则在运行vagrant up时提供原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM