windows系统中,

1,【查看端口占用pid】

netstat -nao|findstr port_number

eg,关闭端口占用程序

2.【使用上面得出的pid号,查看此指定端口的程序名,】

tasklist|findstr pid_number

eg,

关闭端口占用程序

3,【杀死指定端口进程】

taskkill /f /pid pid_number

关闭端口占用程序

 

【linux系统】

【一般情况下  netstat -nao|grep 389

ps -ef|grep svnserve

kill -9 pid】

我们在此来个小长命令搞定

 kill `netstat -ntlp|grep mysql|awk '{print $7}'|awk -F'/' '{print $1}'`

关闭端口占用程序

关闭端口占用程序

 

相关文章:

  • 2021-10-16
  • 2021-05-10
  • 2021-05-05
  • 2021-08-06
  • 2021-07-11
  • 2021-11-20
  • 2021-12-12
  • 2021-12-07
猜你喜欢
  • 2021-06-27
  • 2022-12-23
  • 2021-05-24
  • 2021-12-16
  • 2021-07-19
  • 2021-12-09
  • 2021-06-11
相关资源
相似解决方案