Loading

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 33 下一页
摘要: 阅读全文
posted @ 2021-04-24 20:36 云起时。 阅读(42) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash source /etc/profile DATE="$(date +'%F')" HOST_IP="172.16.1.122" SOURCE_DIR="/opt" # 注意:目录最后面的左斜杠(/) # /opt : 同步时会将整个源目录也同步到备份目录之中 # /opt/ 阅读全文
posted @ 2021-04-24 20:32 云起时。 阅读(162) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash source /etc/profile HOST_IP="172.16.1.122" DROP_IP_FILE="/tmp/drop_ip.log" [ ! -f $DROP_IP_FILE ] && touch $DROP_IP_FILE DATE="$(date +%d/ 阅读全文
posted @ 2021-04-24 20:27 云起时。 阅读(212) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin PHP_NAME=$1 DATE=$(date +%F_%T) WWWROOT=/usr/local/nginx/html/$PHP 阅读全文
posted @ 2021-04-24 20:26 云起时。 阅读(111) 评论(0) 推荐(0) 编辑
摘要: #!/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 云起时。 阅读(92) 评论(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 云起时。 阅读(89) 评论(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 云起时。 阅读(87) 评论(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 云起时。 阅读(82) 评论(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 云起时。 阅读(60) 评论(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 云起时。 阅读(85) 评论(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 云起时。 阅读(102) 评论(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 云起时。 阅读(103) 评论(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 云起时。 阅读(87) 评论(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 云起时。 阅读(132) 评论(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 云起时。 阅读(156) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 33 下一页