当前位置: 首页 > Linux

Linux系统2

时间:2023-04-06 19:16:37 Linux

系统版本:centos7编写shell脚本判断软件是否启动,启动则显示,未启动则显示down#!/bin/bashread-p"请输入您要查找的服务:"LLps-ef|grep$LL&>/dev/nullif[$?-eq0]然后echo"$LLup"elseecho"$LLdown"fi