V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
bestehen
V2EX  ›  Node.js

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

  •  
  •   bestehen · 2018-07-02 10:56:01 +08:00 · 3850 次点击
    这是一个创建于 2341 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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
    simonlei
        1
    simonlei  
       2018-07-02 11:35:57 +08:00
    有 proxifier ?关了试试看
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3489 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 04:53 · PVG 12:53 · LAX 20:53 · JFK 23:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.