一、TCP端口spa
echo "### TCP LISTEN ###" lsof -nP -iTCP -sTCP:LISTEN
二、UDP端口code
echo "### UDP LISTEN ###" lsof -nP -iUDP -sTCP:LISTEN