查看端口占用

  • lsof : (list open files)是一个列出当前系统打开文件的工具。
  • netstat : 用于显示 tcpudp 的端口和进程等相关情况。