作業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
相關文章
相關標籤/搜索