mac下80端口被占用

查看80端口

sudo lsof -i:80

结果图:

COMMAND    PID      USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
node      1596      root   24u  IPv4 0xcfd4a88e94224ac7      0t0  TCP *:http (LISTEN)
node      1596      root   32u  IPv4 0xcfd4a88e94261807      0t0  TCP localhost:http->localhost:58313 (ESTABLISHED)

结束

sudo kill 1596

你可能感兴趣的:(nodejs)