简体   繁体   English

流星已部署在服务器上,但浏览器显示无法访问该站点

[英]Meteor deployed on server, but browser says site can't be reached

So I've deployed my meteor app, and have it up and running on an instance. 因此,我已经部署了流星应用程序,并使其在实例上运行。

I've used the following environment variables: 我使用了以下环境变量:

MONGO_URL='mongodb://localhost:27017/meteor'
ROOT_URL='http://<my static ip>'
PORT=3000

And I run the program using the following command: 然后使用以下命令运行该程序:

node bundle/main.js

It prints my "Meteor is starting up" that is printed using the console.log command, and then doesn't error out, but when I navigate to http://< my static ip >:3000 in a browser, I get an ERR_CONNECTION_REFUSED result. 它会打印我使用console.log命令打印的"Meteor is starting up" ,然后不会出错,但是当我在浏览器中导航到http://< my static ip >:3000时, ERR_CONNECTION_REFUSED结果。

My open mongod terminal says it's connecting fine to the MongoDB database. 我打开的mongod终端说它可以很好地连接到MongoDB数据库。

Does anyone have any ideas on how to start debugging this issue? 是否有人对如何开始调试此问题有任何想法?

Thanks. 谢谢。

In server you don't need to run meteor application on port 3000. You can run it on port 80 if the port is not being used by any other program. 在服务器中,不需要在端口3000上运行流星应用程序。如果该端口未被任何其他程序使用,则可以在端口80上运行它。

If you are using port 80 make sure port 80 is opened by the network security rules. 如果使用端口80,请确保网络安全规则已打开端口80。

If you are using port 3000 or any other port you will have to make sure that port is opened by the network security rules as above. 如果使用端口3000或任何其他端口,则必须确保通过上述网络安全规则打开该端口。 Additionally you will have to mention the IP in your url, like http://<your_ip>:<port> 此外,您还必须在网址中提及IP,例如http://<your_ip>:<port>您的IP http://<your_ip>:<port>

暂无
暂无

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

相关问题 为什么我的服务器在浏览器上显示错误“无法访问此站点 ERR_UNSAFE_PORT”,即使它在终端上运行良好? - Why is my server showing error on the browser “This site can't be reached ERR_UNSAFE_PORT” even when it is running perfectly on the terminal? 使用Grunt进行浏览器同步-浏览器说“无法访问该网站”,但可以在其他笔记本电脑上使用 - Browser Sync using Grunt - Browser says 'the site cannot be reached', but it works on my other laptop 我的服务器在 prot 6666 上运行,我可以从 postman 获得响应,但是当我在浏览器上打开 localhost:6666 时,它说无法访问 - My server is running on prot 6666, I can get response from postman, but when I open localhost:6666 on browser, it says cannot be reached 流星服务器.remove代码在部署时不起作用 - Meteor server .remove code doesn't work when deployed 流星:无法运行服务器 - Meteor: Can't run server 无法运行xsjs文件,错误:无法访问网站 - Not able to run xsjs file, error: site can't be reached Webpack-dev-server 似乎正在运行,但是当我尝试访问端口时出现“无法访问此站点” - Webpack-dev-server seems to run but i get 'This site can’t be reached' when i try to access port 我正在使用服务工作者时无法访问网站 - Site can't be reached when im using service worker 尝试从我的 node-webkit 应用程序打开 DevTools 时出现“无法访问此站点”错误 - "This site can't be reached" error coming while trying to open DevTools from my node-webkit app 流星软件包可在浏览器上运行,但不能在服务器上运行 - Meteor package working on browser but not on server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM