随笔分类 -  Shell

DEV【开发】
摘要:2018-03-22 crontab -l /data/backup/scripts/check_server.sh #! /bin/bash ### AUTHOR: cenliang ### EMAIL: xuanniaoxi@sina.com ### DATE: 2018/03/22 ### R 阅读全文
posted @ 2018-03-22 21:59 岑亮 阅读(1261) 评论(0) 推荐(0)
摘要:2018-03-22 crontab -l /data/backup/scripts/backup_mysql.sh 阅读全文
posted @ 2018-03-22 21:54 岑亮 阅读(235) 评论(0) 推荐(0)
摘要:2018-03-22 批量杀死Sleep状态的进程 /data/backup/scripts/kill_sleep.sh #kill_sleep.sh #mysql批量杀死sleep进程 #!/bin/bash source /etc/profile source /root/.bash_profi 阅读全文
posted @ 2018-03-22 21:52 岑亮 阅读(478) 评论(0) 推荐(0)
摘要:2016-05-26 阅读全文
posted @ 2016-05-26 17:01 岑亮 阅读(7449) 评论(0) 推荐(1)
摘要:2016-01-27-- This script does the following:-- 1. Creates the store user-- 2. Creates the database tables-- 3. Creates the PL/SQL code-- 4. Po... 阅读全文
posted @ 2016-01-27 13:24 岑亮 阅读(565) 评论(0) 推荐(0)
摘要:2015-11-24 阅读全文
posted @ 2015-11-24 18:00 岑亮 阅读(343) 评论(0) 推荐(0)
摘要:2015-10-25 #!/bin/bash ### AUTHOR: Leo ### DATE: 2015/10/25 ### NAME:yum.sh ### DESC:配置yum仓库 cd /etc/yum.repos.d mkdir bak && mv Centos-* bak wget htt 阅读全文
posted @ 2015-10-25 16:45 岑亮 阅读(322) 评论(0) 推荐(0)
摘要:2015-09-23#delete_table_data.sh#批量删除mysql库中表数据#!/bin/bash### AUTHOR: Leo### DATE: 2015/09/23### REV: 1.0echo -e "Input the dbname you want to use: \c"... 阅读全文
posted @ 2015-09-23 17:22 岑亮 阅读(579) 评论(0) 推荐(0)
摘要:2015-09-07#kill_sleep.sh#mysql批量杀死sleep进程#!/bin/bashMYSQL_OPT="/usr/bin/mysql -uroot --socket=/var/lib/mysql/mysql.sock -ppro#pateo"DIR="/tmp"$MYSQL_O... 阅读全文
posted @ 2015-09-07 15:18 岑亮 阅读(2816) 评论(0) 推荐(0)
摘要:2015-09-07#backup_daily_report.sh#myql备份日检报告#!/bin/bash### AUTHOR: Leo### DATE: 2015/09/07### REV: 1.0echo -e " `date +%Y-%m-%d` ivi backup dailyrepor... 阅读全文
posted @ 2015-09-07 15:02 岑亮 阅读(266) 评论(0) 推荐(0)
摘要:2015-09-07#nagios批量安装客户端###在客户端批量安装nagios-plugin和nrpe#!/bin/bashHOST_LIST=`cat nagios_hosts.txt`for i in $HOST_LISTdo #从跳板机将相关软件复制到nagios客户端 scp... 阅读全文
posted @ 2015-09-07 14:49 岑亮 阅读(257) 评论(0) 推荐(0)
摘要:2015-09-07#inno_backup.sh#mysql备份innodb引擎数据库#!/bin/bash### AUTHOR: Kobezhu### DATE: 2015/05/12### REV: V0.1source /etc/profilesource /root/.bash_profi... 阅读全文
posted @ 2015-09-07 14:42 岑亮 阅读(342) 评论(0) 推荐(0)
摘要:2015-09-07#add_remote_user_bat.sh#linux批量创建远程用户#!/bin/bash### AUTHOR: Joe### DATE: 2015/07/12### REV: 1.0if [ ! -n "$1" ];then echo -e "Input the us... 阅读全文
posted @ 2015-09-07 14:29 岑亮 阅读(344) 评论(0) 推荐(0)
摘要:2015-09-07#add_remote_user.sh#liunx创建远程用户帐号#!/bin/bash### AUTHOR: Joe ### DATE: 2015/08/05### REV: 1.0if [ ! -n "$1" ];then echo -e "Input the usern... 阅读全文
posted @ 2015-09-07 14:20 岑亮 阅读(506) 评论(0) 推荐(0)
摘要:2015-09-07#add_local_user.sh#linux创建本地用户帐号#!/bin/shcd /data/home || mkdir -p /data/homeecho -e "Input the username you want add:\c"read usernameuserad... 阅读全文
posted @ 2015-09-07 14:08 岑亮 阅读(1132) 评论(0) 推荐(0)