我在 mac 运行 anyproxy 为啥总是说端口监听报错呢?看网上都说端口被占用,但是我 lsof 查看端口也没有查看到任何信息 我是通过 node npm 安装的

2018-07-02 10:56:01 +08:00
 bestehen
anyproxy
[AnyProxy Log][2018-07-02 10:52:56]: Http proxy started on port 8001
[AnyProxy Log][2018-07-02 10:52:56]: web interface started on port 8002
[AnyProxy ERROR][2018-07-02 10:52:56]: websocket error, Error: listen EADDRINUSE :::8002
[AnyProxy Log][2018-07-02 10:52:56]: error in websocket proxy: listen EADDRINUSE :::8001,
Error: listen EADDRINUSE :::8001
at Server.setupListenHandle [as _listen2] (net.js:1327:14)
at listenInCluster (net.js:1375:12)
at Server.listen (net.js:1462:7)
at async.series.tipText (/usr/local/lib/node_modules/anyproxy/proxy.js:205:32)
at /usr/local/lib/node_modules/anyproxy/node_modules/async/lib/async.js:607:21
at /usr/local/lib/node_modules/anyproxy/node_modules/async/lib/async.js:246:17
at iterate (/usr/local/lib/node_modules/anyproxy/node_modules/async/lib/async.js:146:13)
at /usr/local/lib/node_modules/anyproxy/node_modules/async/lib/async.js:157:25
at /usr/local/lib/node_modules/anyproxy/node_modules/async/lib/async.js:248:21
at /usr/local/lib/node_modules/anyproxy/node_modules/async/lib/async.js:612:34
error happened in proxy websocket: { Error: listen EADDRINUSE :::8001
at Server.setupListenHandle [as _listen2] (net.js:1327:14)
at listenInCluster (net.js:1375:12)
at Server.listen (net.js:1462:7)
at async.series.tipText (/usr/local/lib/node_modules/anyproxy/proxy.js:205:32)
at /usr/local/lib/node_modules/anyproxy/node_modules/async/lib/async.js:607:21
at /usr/local/lib/node_modules/anyproxy/node_modules/async/lib/async.js:246:17
at iterate (/usr/local/lib/node_modules/anyproxy/node_modules/async/lib/async.js:146:13)
at /usr/local/lib/node_modules/anyproxy/node_modules/async/lib/async.js:157:25
at /usr/local/lib/node_modules/anyproxy/node_modules/async/lib/async.js:248:21
at /usr/local/lib/node_modules/anyproxy/node_modules/async/lib/async.js:612:34
errno: 'EADDRINUSE',
code: 'EADDRINUSE',
syscall: 'listen',
address: '::',
port: 8001 }
^Z
[6] + 19729 suspended anyproxy
➜ ~ lsof -i:8001
➜ ~ lsof -i:8002
3838 次点击
所在节点    Node.js
1 条回复
simonlei
2018-07-02 11:35:57 +08:00
有 proxifier ?关了试试看

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/467391

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX