Loading

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 33 下一页
摘要: #!/bin/bash export PAHT=/usr/local/maven/bin:/usr/local/jdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin DATE=$(date +%F_%T) TOMCAT 阅读全文
posted @ 2021-04-24 20:24 云起时。 阅读(101) 评论(0) 推荐(0)
摘要: #!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin LOG_DIR=/usr/local/nginx/logs YESTERDAY_TIME=$(date -d "yesterday" 阅读全文
posted @ 2021-04-24 20:23 云起时。 阅读(97) 评论(0) 推荐(0)
摘要: #!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin # Nginx 日志格式: # log_format main '$remote_addr - $remote_user [$tim 阅读全文
posted @ 2021-04-24 20:22 云起时。 阅读(95) 评论(0) 推荐(0)
摘要: #!/bin/bash source /etc/profile DATE="$(date +%F_%H-%M-%S)" DB_IP="172.16.1.122" HOST="localhost" PORT="3306" USER="root" PASS="Liuchang@2020" BACKUP_ 阅读全文
posted @ 2021-04-24 20:21 云起时。 阅读(92) 评论(0) 推荐(0)
摘要: #!/bin/bash source /etc/profile DATE="$(date +%F_%H-%M-%S)" DB_IP="172.16.1.122" HOST="localhost" PORT="3306" USER="root" PASS="Liuchang@2020" BACKUP_ 阅读全文
posted @ 2021-04-24 20:18 云起时。 阅读(69) 评论(0) 推荐(0)
摘要: #!/bin/bash source /etc/profile # 主从同步 # master:binlog # slave:relaylog # 写->master->binlog<-relaylog->slave DB_IP="172.16.1.122" HOST="localhost" POR 阅读全文
posted @ 2021-04-24 20:17 云起时。 阅读(94) 评论(0) 推荐(0)
摘要: #!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin NGINX_V=1.19.1 PHP_V=7.2.19 TMP_DIR=/tmp INSTALL_DIR=/usr/local PW 阅读全文
posted @ 2021-04-24 20:16 云起时。 阅读(114) 评论(0) 推荐(0)
摘要: #!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin COMMAND=$* HOST_INFO=host.info for IP in $(awk '/^[^#]/ {print $1} 阅读全文
posted @ 2021-04-24 20:15 云起时。 阅读(114) 评论(0) 推荐(0)
摘要: #!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin URL_LIST=$1 for URL in $URL_LIST; do FAIL_COUNT=0 for ((i=1; i<=3; 阅读全文
posted @ 2021-04-24 20:13 云起时。 阅读(99) 评论(0) 推荐(0)
摘要: #!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin HOST_INFO=host.info for IP in $(awk '/^[^#]/ {print $1}' $HOST_INF 阅读全文
posted @ 2021-04-24 20:12 云起时。 阅读(144) 评论(0) 推荐(0)
摘要: #!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin NIC=$1 echo -e "Time In Out" while true; do OLD_IN=$(awk '/'$NIC'/ 阅读全文
posted @ 2021-04-24 20:11 云起时。 阅读(166) 评论(0) 推荐(0)
摘要: #!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin echo " PCPU " ps -eo user,pid,pcpu,pmem,args --sort=-pcpu | head - 阅读全文
posted @ 2021-04-24 20:07 云起时。 阅读(169) 评论(0) 推荐(0)
摘要: #!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin function cpu() { util=`vmstat | awk 'NR==3 {print (100-$15) "%"}'` 阅读全文
posted @ 2021-04-24 20:06 云起时。 阅读(249) 评论(0) 推荐(0)
摘要: #!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin USER_LIST=$@ # USER_LIST=(user01 user02 user03) USER_FILE=./user.t 阅读全文
posted @ 2021-04-24 20:04 云起时。 阅读(217) 评论(0) 推荐(0)
摘要: # yum install mailx -y # vim /etc/mail.rc set from=hyjy2504164765@163.com smtp=smtp.163.com set smtp-auth-user=hyjy2504164765@163.com smtp-auth-passwo 阅读全文
posted @ 2021-04-24 20:02 云起时。 阅读(78) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 33 下一页