如何在不同的端口上运行meteor [英] How to run meteor on a different port

查看:53
本文介绍了如何在不同的端口上运行meteor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不同的端口上运行meteor,例如80端口.我尝试使用 meteor --port 80,但出现此错误 Error: listen EACCES

How to run meteor on a different port, for example on port 80. I tried to use meteor --port 80, but I get this error Error: listen EACCES

请帮帮我.

推荐答案

听起来可能是您机器上的访问问题.

Sounds like it might be access issue on your machine.

查看以下答案,它可能与您的问题有关.引用:

Check out this following answer, which might be related to your question. Quoting:

作为一般规则,没有root权限运行的进程不能绑定到1024以下的端口.

"As as a general rule processes running without root privileges cannot bind to ports below 1024.

所以尝试更高的端口,或者通过 sudo 以提升的权限运行."

So try a higher port, or run with elevated privileges via sudo."

因此,您可以看到带有您的端口号的 sudo metre run 将起作用,但是您可以解决根本原因,即修复节点 root 权限.

So, you can see that sudo meteor run with your port number will work, but that you can address the root cause, which is fixing the node root privilege.

侦听大多数端口时 Node.js EACCES 错误

这篇关于如何在不同的端口上运行meteor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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