linux查看某端口被占用如何查看?

方法1: lsof命令,即ls open files
  lsof -i:端口号
  例如:
在这里插入图片描述
  方法2: netstat命令
  netstat -tunpl | grep 端口号百度收录批量查询
  例如:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44400506/article/details/88116371