Linux

jenkins pipeline自定义全局变量

有时候在写pipeline时候我们需要在stage下来定义全局变量给他的stage使用 这时候可以使用env.定义变量 #!groovy @Library('pipeline-library-demo') _ def deploy = new org.devops.depoyUni() pipeline { ...

fluent-bit丢弃指定字段

一、 {"@timestamp":1628246104.531301,"cpu_p":3.625,"user_p":2.625,"system_p":1.0,"cpu0.p_cpu":2.0,"cpu0.p_user":2.0,"cpu0.p_system":0.0,"cpu1.p_cpu":1.0,"cpu1.p_user":1.0,"cpu1.p_system":0.0,"c...

Hadoop客户端安装配置(CDH平台)

下载apache官网安装包,如果已有就忽略。https://archive.apache.org/dist/hadoop/common/hadoop-2.6.0/hadoop-2.6.0.tar.gz 安装Hadoop客户端 解压二进制文件 tar -zxf hadoop-2.6.0.tar.gz -C /opt...

selenium截图网站页面

from selenium import webdriver from selenium.webdriver.chrome.options import Options def get_image(url, pic_name): # chromedriver的路径 chromedriver = r"C:\Users\xx\Downloads\chromedriv...

mongodb 备份恢复

导出库 mongodump -h 192.168.3.26 --port 8635 -u user -p 'xxxx' --authenticationDatabase admin -d timedtask -o mongodb-arch-backup2020/ mongodump备份还原数据库 mongorestore -h 192.1...

Cnetos7升级内核

#cat /etc/redhat-release #uname -a 导入public key #rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org 安装ELRepo到CentOS 可以去http://elrepo.org/tiki/tiki-index.php选择要安装的ELRepo To i...

docker容器替换镜像源

Debian sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list Alpine sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories