查看: 27|回复: 0

node监听80端口权限问题

[复制链接]

0

主题

0

回帖

0

积分

积极分子

金币
0
阅读权限
220
精华
0
威望
0
贡献
0
在线时间
0 小时
注册时间
2009-4-23
发表于 2019-5-13 17:37:00 | 显示全部楼层 |阅读模式

报了这个错误:

 

  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
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部