1.查看IP
ifconfig | grep "inet"
2.查看被占端口应用
sudo lsof -i tcp:port
3.开放某个端口
sudo ipfw add 8020 allow tcp from any to any dst-port 8020