netstat -tunlp |grep 端口号

locate  master | grep '/master$'

查看端口被哪个程序占用

lsof -i:端口号