作业1:编写httpd监控脚本

#!/bin/bash ROOT_UID=0 if [ "$UID" -ne "$ROOT_UID" ];then echo "Error:you should be root to run this script!" exit 1 fi systemctl start httpd &>>/dev/null if [ $? == 0 ];then whil
相关文章
相关标签/搜索