jps -lvm|grep "young_rd_10004" | awk '{print $1}'|xargs kill -9; sleep 3; /home/web_server/apis/young_rd_10004/bin/startup.sh ...
分类:
Web程序 时间:
2019-11-05 17:02:33
阅读次数:
119
#设置编译器CC=gcc #debug文件夹里的makefile文件需要最后执行,所以这里需要执行的子目录要排除debug文件夹,这里使用awk排除了debug文件夹,读取剩下的文件夹SUBDIRS=$(shell ls -l | grep ^d | awk '{if($$9 != "debug") ...
分类:
其他好文 时间:
2019-11-04 09:31:21
阅读次数:
114
首先介绍下grep命令: grep(global search regular expression(RE) and print out the line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。它是linux中最常用的“文本处理 ...
分类:
其他好文 时间:
2019-11-01 16:33:15
阅读次数:
79
一、Compose简介Compose是用于定义和运行多容器Docker应用程序的工具。通过Compose,可以使用YAML文件来配置应用程序的服务。然后,使用一个命令,就可以从配置中创建并启动所有服务。Docker-Compose是一个容器编排工具。通过一个.yml或.yaml文件,将所有的容器的部署方法、文件映射、容器端口映射等情况写在一个配置文件里,执行docker-composeup命令就像
分类:
其他好文 时间:
2019-11-01 14:32:51
阅读次数:
130
参考官方文档 Database Quick Installation Guide for Linux x86-64,https://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htmhttps://www.cnblogs.com/nucdy... ...
分类:
数据库 时间:
2019-11-01 11:18:27
阅读次数:
163
#!/bin/bash #user%加上sys%是性能的评判标准 User_sys_a=`sar -u 1 3 |tail -1 |awk '{print $3"+"$5}'|bc ` #因为上面的User_sys_a输出为xx.xx会存在两位小数,与下面的85是不能直接比较 #所以使用printf... ...
分类:
其他好文 时间:
2019-10-31 22:04:26
阅读次数:
128
#!/bin/bash free_M=`free |grep '+' | awk '{print $3}'|tr -d '\r'` #echo $free_M all_M=`free |grep -i 'mem' | awk '{print $2}'|tr -d '\r'` #echo $all_M... ...
分类:
其他好文 时间:
2019-10-31 21:53:44
阅读次数:
83
#!/bin/bash await=`sar -d |tail -n1 |awk '{print $8}'|tr -d '\r'` svctm=`sar -d |tail -n1 |awk '{print $9}'|tr -d '\r'` until=`sar -d |tail -n1 |awk '... ...
分类:
其他好文 时间:
2019-10-31 21:48:51
阅读次数:
102
#安装所需软件包yum -y install createrepo mkisofs anaconda-runtime 根据root下的install.log文件,得到安装的软件包awk '/Installing/{print $2}' install.log |sed 's/^[0-9]*://g' ...
分类:
系统相关 时间:
2019-10-30 16:51:54
阅读次数:
386
awk '{ BEGIN{stat1} BEGIN{stat2} pattern1{action1} pattern2{action2} ... patternn{actionn} {默认动作,无条件,始终执行} END{stat1} END{stat2} }' awk 'BEGIN{ for(i=... ...
分类:
其他好文 时间:
2019-10-30 13:37:00
阅读次数:
72