随笔分类 - shell
shell
摘要:
```sh [root@jenkins code]# sed -i 's#10.254.109.81#v3-uat.h5.svc.cluster.local#g' `grep "10.254.109.81" -rl ./` ```
阅读全文

摘要:
```sh 显示 CentOS 7 上本机的网络接口及其 MAC 地址信息: ip a s:ip 命令用于显示和操作 Linux 系统中的网络设备、地址和路由等信息。在这里,a 是 address 的缩写,s 是 show 的缩写。因此,ip a s 命令的作用是显示本机的网络地址信息。 |:管道操
阅读全文

摘要:
#!/bin/bash #ENDPOINTS="https://192.168.1.207:2379,https://192.168.1.208:2379,https://192.168.1.209:2379" ENDPOINTS="127.0.0.1:2379" CACERT="/etc/kube
阅读全文

摘要:
[root@master ~]# cat /usr/bin/cleanimg #!/bin/bash num=`docker ps -a|grep Exit|wc -l` if [ (docker ps -a|grep Exit|awk
阅读全文

摘要:
[root@bigdata04 ~]# cat /data/res/search.sh #!/bin/bash source /etc/profile mem=`free -h |awk 'NR==2{print $NF}' | awk -FG '{print $1}' |cut -d '.' -f
阅读全文

摘要:
[root@bigdata01 ~/install]# vim change-yarn-site.sh #!bin/bash #此脚本对大数据集群所有节点的yarn-site.xml文件根据集群配置自动更改对应配置。 HOST_LIST=`grep 'bigdata' /etc/hosts |awk
阅读全文

摘要:
mysql备份脚本 #function:MYSQL自动全备 #version:1.0.0 #author:ans #date:2022/01/13 # #!/bin/sh #创建目录 #MAIN=`cd / && mkdir -p mysql_bak` #MAIN1=`mkdir -p /mysql
阅读全文

摘要:
[root@small-node2 ~]# cat check-yuming-time.sh #!/bin/bash ################ Version Info ################## # Create Date: 2022-10-14 # Author: Anshen
阅读全文

摘要:
[root@small-master ~]# kubectl get po -A -o wide |grep Running |awk '{print $5}' 0 0 0 0 0 1 2 0 1 1 1 2 1 0 1 2 [root@small-master ~]# kubectl get po
阅读全文

摘要:
1)开始通知 在Jenkins发版过程的第一步添加下面内容,调用下面脚本实现机器人发版通知(注意脚本路径和传参) ${BUILD_USER}是Jenkins内置变量,执行发布的用户名,需要安装插件-Build User Vars Plugin,在构建任务里开启Set jenkins user bui
阅读全文
