/bin/bash # 说明: 检测21 22 25 80 端口是否存在 # 时间: 2024/3 PATH=${PATH}:/tmp/shelldir export PATH testfile=/tmp/shelldir/testfile.txt netstat -tulnp > ${testfile} testing=$(grep ":80" ${testfile}) if [ "${testing}" != "" ] ;then echo "存在80端口" else echo "不存...