![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bash shell
文章平均质量分 51
bing19880122
这个作者很懒,什么都没留下…
展开
-
备份shell
#! /bin/bash # # config # etcConfig=/etc/wwwbackup.conf if [[ ! -f ${etcConfig} ]]; then echo "${etcConfig} not exists" exit 1 fi while read s t do ss=`date +%F%r`.tar.gz backDir=`basename ${s}` if [[ -d ${s} ]]; t原创 2011-02-14 08:34:00 · 571 阅读 · 0 评论 -
mysql 启动 shell
#! /bin/bash # # this is mysql contorl # # # config # my_password="888888" function start() { echo "mysql Starting ......" isExists=$(ps aux | grep mysql | awk '/^mysql/{print $2}') if [[ ${isExists} > 0 ]]; then stop原创 2011-02-17 08:51:00 · 3375 阅读 · 0 评论