缺陷是如果其他程序用了httpd也會查找出來可以ps aux|grep 安裝路徑/bin/httpd|grep -v grep來查找
2016-02-18
運行httpd,用find找到httpd.pid在哪里
[ -e httpd.pid地址 ]判斷httpd.pid是否存在,存在就是運行的,反之亦然
[ -e httpd.pid地址 ]判斷httpd.pid是否存在,存在就是運行的,反之亦然
2016-02-18
gt(greater than)、lt(less than)、ge(greater than or equal)、le(less than or equal)
2016-01-27
[ "$aa" == "$bb" ] && echo "Yes" ||echo "No" ,[]中間必須有空格!!!
2016-01-27