如何在不同的 IP 地址上运行流星服务器? [英] How to run meteor server on a different ip address?

查看:13
本文介绍了如何在不同的 IP 地址上运行流星服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不同的 IP 地址上启动流星服务器?目前在示例中只能在 localhost:3000 地址上运行.

How can i start meteor server on a different IP address? Currently in the examples am only able to run on a localhost:3000 address.

推荐答案

根据 netstat -tapn Meteor/Node.js 监听机器上所有可用的 IP 地址:

According to netstat -tapn Meteor/Node.js listens on all available IP addresses on the machine:

tcp        0      0 0.0.0.0:3000            0.0.0.0:*               LISTEN      9098/node

你有运行 iptables 之类的东西吗?

Do you have something like iptables running?

这篇关于如何在不同的 IP 地址上运行流星服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆