码迷,mamicode.com
首页 > 其他好文 > 详细

kill one process

时间:2014-06-08 21:47:33      阅读:366      评论:0      收藏:0      [点我收藏+]

标签:c   a   int   com   name   type   

  There is an need of kill one port is already in use.

 

  The command is :

 

  lsof -i:8000

 

  There will be a list of:

  command pid user fd type device size/off node name

       The command shows which program is now use the port, the pid is process id, the user is username of the operator, the fd is something I don‘t konw, the type is protecol of internet, the device is sth I don‘t know, the name is the application‘s URL.

 

  So, what we need to do to kill the process uses port 8000 is to type the command:

 

  kill pid(the process id showed by the command we type last)

kill one process,布布扣,bubuko.com

kill one process

标签:c   a   int   com   name   type   

原文地址:http://www.cnblogs.com/lqxy/p/3775668.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!