Mac 操作

查看Ip:

ifconfig | grep "inet" | grep -v 127.0.0.1

查看端口占用情况

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

posted @ 2015-11-20 09:46  wind90  阅读(173)  评论(0编辑  收藏  举报