#!/bin/bashecho "输入服务测试是否开启"read -ep "请输入服务" fw$fw status &> /dev/nullif [ $? -eq 0 ]then echo "$fw 服务开启"else echo "$fw 服务不可用"fi