OSX 8080 端口被占用该怎么解决
已解决:见 11 楼
问题: 8080 端口被占用
系统版本:OSX 10.9.3.
问题描述:
8080 端口被占用,但找不到什么应用占用了这个端口,故无法解绑。
重启无法解决。
系统设置中「共享」下的所有服务均处于关闭状态。
curl 测试结果如下:
$ curl -v 127.0.0.1:8080
* About to connect() to 127.0.0.1 port 8080 (#0)
* Trying 127.0.0.1...
* Adding handle: conn: 0x7fbb51004000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fbb51004000) send_pipe: 1, recv_pipe: 0
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.30.0
> Host: 127.0.0.1:8080
> Accept: */*
>
* Empty reply from server
* Connection #0 to host 127.0.0.1 left intact
curl: (52) Empty reply from server
nc 的测试结果如下:
$ nc -v -w 2 127.0.0.1 8080
found 0 associations
found 1 connections:
1: flags=82<CONNECTED,PREFERRED>
outif lo0
src 127.0.0.1 port 49382
dst 127.0.0.1 port 5001
rank info not available
TCP aux info available
Connection to 127.0.0.1 port 8080 [tcp/http-alt] succeeded!
但 sudo lsof -i :8080 的结果为空,找不到是什么进程占用了 8080 端口。
请教该怎么解决这个问题?