#!/bin/sh # 检查端口是否存在 source riskenv if [[ `findPortPid $PORT|wc -l` -eq 1 && `findPortPid $serverPort|wc -l` -eq 1 ]] then echo 0 else echo 1 fi