文章分类 - shell(脚本)
摘要:tomcat心跳脚本--(配合keepalived) #!/bin/bash # #******************************************************************** #Author: nwq #QQ: 3078499367 #Date: 202
阅读全文
摘要:nginx心跳脚本--(配合keepalived) #!/bin/bash # #******************************************************************** #Author: nwq #QQ: 3078499367 #Date: 2024
阅读全文
摘要:一键安装redis #!/bin/bash # #******************************************************************** #Author: nwq #QQ: 3078499367 #Date: 2024-07-22 #FileName
阅读全文
摘要:shell常用脚本经典案例-2 1 批量解压 使用for循环实现 模板一 #!/bin/bash # 批量解压当前目录下的所有.tar文件 for tar_file in *.tar; do if [ -f "$tar_file" ]; then tar -xvf "$tar_file" && ec
阅读全文
摘要:shell脚本案例 1.服务器系统配置初始化 背景:新购买10台服务器并已安装linux操作 需求: 1.设置时区并同步时间 2.禁用selinux 3.清空防火墙默认策略 4.历史命令显示操作时间 5.禁止root远程登录 6.禁止定时任务发送邮件 7.设置最大打开文件数 8.减少swap使用 9
阅读全文