lsof -i:80
列出占用 80 端口的程序
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME mysqld 672 ruby 42u IPv4 0xc9d645e0853930b5 0t0 TCP localhost:mysql (LISTEN)
lsof -i:80
列出占用 80 端口的程序
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME mysqld 672 ruby 42u IPv4 0xc9d645e0853930b5 0t0 TCP localhost:mysql (LISTEN)