[英]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.