首页
留言本
keepalived
yum install keepalived -y 单主模式 主:配置文件 ! Configuration File for keepalived global_defs {...
admin
2020-04-18
1326
一键部署LNMP网站平台脚本
#!/bin/bash NGINX_V=1.15.6 PHP_V=5.6.36 TMP_DIR=/tmp INSTALL_DIR=/usr/local PWD_C=$PWD e...
admin
2020-04-15
1195
批量创建100用户并设置密码脚本
#!/bin/bash HOST_INFO=host.info for IP in $(awk '/^[^#]/{print $1}' $HOST_INFO); do U...
admin
2020-04-15
1024
查看网卡实时流量脚本
#!/bin/bash NIC=$1 echo -e " In ------ Out" while true; do OLD_IN=$(awk '$0~&q...
admin
2020-04-15
1050
nginx访问日志分析脚本sh
#!/bin/bash # 日志格式: $remote_addr - $remote_user [$time_local] "$request" $status $body_by...
admin
2020-04-15
996
nginx 访问访问日志按天切割
#!/bin/bash LOG_DIR=/usr/local/nginx/logs YESTERDAY_TIME=$(date -d "yesterday" +%F) LOG...
admin
2020-04-15
972
MySQL数据库备份多循环sh
#!/bin/bash DATE=$(date +%F_%H-%M-%S) HOST=localhost USER=backup PASS=123.com BACKUP_DIR=/data/...
admin
2020-04-15
966
Dos攻击防范(自动屏蔽攻击IPsh)脚本
#!/bin/bash DATE=$(date +%d/%b/%Y:%H:%M) LOG_FILE=/usr/local/nginx/logs/demo2.access.log ABNORMAL...
admin
2020-04-15
1016
Kali2019.1a可用镜像源
vim /etc/apt/sources.list 写入以下内容 deb https://mirrors.aliyun.com/kali kali-rolling main non-fre...
admin
2020-04-13
1042
树莓派4B在centos7.7下安装softether vpn实现远程访问家里的设备
简单介绍: SoftEther VPN概述: SoftEther VPN是日本筑波大学的一个研究项目,是一个开放源代码的跨平台多协议VPN程序,它包括服务器端、客户端、服务器端管理工具等数个软件...
admin
2020-03-29
1381
树莓派4B安装centos7.7
树莓派4B安装centos7.7华为镜像站:https://mirrors.huaweicloud.com/centos-altarch/7.7.1908/isos/armhfp/图中的就是树莓派4B...
admin
2020-03-28
1779
批量检测网站是否异常脚本sh
#!/bin/bash URL_LIST="www.baidu.com www.ctnrs.com"for URL in $URL_LIST; do FAIL_COUNT=...
admin
2020-03-11
1097
批量主机远程执行命令脚本
#!/bin/bash COMMAND=$* HOST_INFO=host.info for IP in $(awk '/^[^#]/{print $1}' $HOST_INFO...
admin
2020-03-10
1050
监控100台服务器磁盘利用率脚本
#!/bin/bash HOST_INFO=host.info for IP in $(awk '/^[^#]/{print $1}' $HOST_INFO); do U...
admin
2020-03-01
1082
zabbix自定义监控项
自定义监控项 一,比如我想监控sda的TPS值,首先利用awk把相关的取出来.利用shell 如果i...
admin
2020-02-29
1335
‹‹
‹
5
6
7
8
9
10
11
12
13
14
›
››
Powered By
Z-BlogPHP 1.7.3
Theme By
优美模版
本博客为开源博客,本博客联系QQ:372097243