监听低于1024的端口号需要root权限。
用如下方式执行程序
sudo node server.js
参考stackoverflow
Why are the first 1024 ports restricted to the root user only?
监听低于1024的端口号需要root权限。
用如下方式执行程序
sudo node server.js
参考stackoverflow
Why are the first 1024 ports restricted to the root user only?