码迷,mamicode.com
首页 >  
搜索关键字:sed awk    ( 13063个结果
http接口监控脚本
环境:centos7 效果:监控所有接口,连续失败两次,发送信息给运维人员 思路:执行check.sh—读取interface接口内容—调用http-check脚本判断接口是否成功,失败写入文件fail.txt中—est-faile-time脚本判断失败的次数,两次及以上检测都失败——调用脚本sed ...
分类:Web程序   时间:2021-05-24 00:58:58    阅读次数:0
ssh登录基于key验证
ssh基于key验证 1,在客户端生成公钥私钥对并将公钥拷到要连接的服务器上,验证是否成功 [root@localhost ~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the k ...
分类:其他好文   时间:2021-05-23 22:59:40    阅读次数:0
树莓派4B-搭建Jenkins
官网下载Jenkins https://www.jenkins.io/zh/download/ 构建jenkins镜像 # docker build -t jenkins:2.277.3 . from ubuntu:latest run sed -i 's/ports.ubuntu.com/mirr ...
分类:其他好文   时间:2021-05-04 16:25:44    阅读次数:0
0630. Course Schedule III (H)
Course Schedule III (H) There are n different online courses numbered from 1 to n. You are given an array courses where courses[i] = [durationi, lastD ...
分类:其他好文   时间:2021-05-04 16:09:30    阅读次数:0
shell逐行读取替换
#!/bin/bash while read linedo echo $line txt=`echo $line |awk -F' ' '{print $1}'` id=`echo $line|awk -F' ' '{print $3}'` echo $txt echo $id sed "s/ws2 ...
分类:系统相关   时间:2021-05-03 12:39:24    阅读次数:0
常用工作命令集合
1. find . -regex '.*\.c\|.*\.cc' | xargs grep "string" --color --line-number 2. sed -n '5,10p' filename 查看文件的第5行到第10行。 3. grep -o hello test.log | wc ...
分类:其他好文   时间:2021-04-27 15:16:42    阅读次数:0
CentOs 8 软件源更新 镜像 中科大
对于 CentOS 8,使用以下命令替换默认的配置 sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \ -e 's|^#baseurl=http://mirror.centos.org/$contentdir|baseurl=https://mirrors.u ...
分类:其他好文   时间:2021-04-27 15:10:23    阅读次数:0
面试基础-linux操作系统篇
1.Sed sed -e '4 a newline' testfile:4 行之后添加一行 sed -n '5,7p':仅列出 /etc/passwd 文件内的第 5-7 行 如果你有一个 100 万行的文件,你要在第 100 行加某些文字,此时使用 vim 可能会疯掉!因为文件太大了!那怎么办?就 ...
分类:系统相关   时间:2021-04-26 14:08:27    阅读次数:0
mysql8安装,解压版
1.到官网下载自己的版本 2.解压 3.解压后的文件转移,建议转移,错误少 mv 原位置 /usr/local/mysql 4. 创建数据位置 data文件夹和日志位置 log文件夹,位置自定义,再log 里面创建日志文件 touch error.log 5.检查是否存在mysql用户和mysql组 ...
分类:数据库   时间:2021-04-26 13:27:50    阅读次数:0
CentOs6 无法正常使用yum命令
安装CentOS 6.8使用yum命令报错 使用四条命令,就可以正常使用yum了 sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf curl -o /etc/yum.repos.d/CentOS-Bas ...
分类:其他好文   时间:2021-04-26 13:13:52    阅读次数:0
13063条   上一页 1 ... 5 6 7 8 9 ... 1307 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!