当前位置:   article > 正文

node监听80端口权限问题

error: listen eacces: permission denied ::1:80 at server.setuplistenhandle [

报了这个错误:

 

  Error: listen EACCES: permission denied 127.0.0.1:80

      at Server.setupListenHandle [as _listen2] (net.js:1273:19)

      at listenInCluster (net.js:1338:12)

      at GetAddrInfoReqWrap.doListen [as callback] (net.js:1471:7)

      at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:62:10)

  Emitted 'error' event at:

      at emitErrorNT (net.js:1317:8)

      at process._tickCallback (internal/process/next_tick.js:63:19)

 

 

在执行 node 1.js前加上sudo

转载于:https://www.cnblogs.com/Mr-Rshare/p/10857960.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/501095
推荐阅读
相关标签
  

闽ICP备14008679号