月度归档: 2024 年 11 月
thumbnail

判断ssh是否运行

12345678#!/bin/bash service=$( systemctl is-active sshd ) if [ "$service" == active ];then echo "$service is running" else sys……