美文网首页
Mac 常用命令

Mac 常用命令

作者: YM_1 | 来源:发表于2017-03-15 16:46 被阅读13次

命令

lsof -i tcp:port

lsof -i tcp:port (port替换成端口号,比如6379)可以查看该端口被什么程序占用,并显示PID,
方便KILL

kill -9 pid

相关文章

网友评论

      本文标题:Mac 常用命令

      本文链接:https://www.haomeiwen.com/subject/fltrnttx.html