Error: listen EACCES 0.0.0.0:444 node.js while listening on port 444/443

监听低于1024的端口号需要root权限。
用如下方式执行程序

sudo node server.js

参考stackoverflow
Why are the first 1024 ports restricted to the root user only?

猜你喜欢

转载自blog.csdn.net/sinat_36002055/article/details/121685705
444