智能运维
-
shell条件判断 流程控制 与 循环语句
条件判断 1、语法格式 1、test 条件表达式 2、[ 条件表达式 ] ***中括号两边得有空格 有空值得加双引号否则会报错,[]里面不能加&& || 3、[[ 条件表达式 ]] 支持正侧 = ~ ***中括号两边…
-
Windows 查看开机使用的时间
Windows 查看开机使用的时间
-
Shell编程基础
Shell脚本 命令、变量和流程控制语句等有机的结合起来 shell脚本擅长处理纯文本类型的数据,而linux中,几乎所有的配置文件,日志,都是纯文本类型文件 默认shell与版本 常用操作系统的默认shell 1.Linux是Bourne A…
-
了解Linux根节点下的目录
使用ls /命令查看根节点下的目录 [root@ /]# ls bin dev home lib64 media opt root sbin sys usr boot etc lib lost+found mnt proc run srv tmp var 以下是对这些目录的解释(根目录下的东西都不要乱动) /bin: b…
-
linux常用命令
sed -i "s/172.16.12.240:2006/10.121.182.17//webgis/g" `grep 172.16.12.240:2006 -rl /data/jadp-webapp`sed -i "s/bs01/cgyadmin/g" `grep bs01 -rl /data/jadp-webapp` tar cf filename #打包文件tar xf filen…
-
nginx reverse proxy in Kubernetes
Dynamic reverse proxy using nginx in Kubernetes 1. create a configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: confnginx data: nginx.conf: | user nginx; worker_processes 1; error_log /va…
-
linux awk命令统计行数和列数
1、测试数据 [root@centos7 test4]# ls test.txt [root@centos7 test4]# cat test.txt d j k j x m y e s g j i x v b d z c e t 2、统计行数和列数 [root@centos7 test4]# ls test.txt [root@centos7 test4]# …
-
linux中输出匹配行的行号
1、测试数据 [root@centos7 test4]# ls test.txt [root@centos7 test4]# cat test.txt e f j d i x a d g c F w 2、grep 实现 [root@centos7 test4]# ls test.txt [root@centos7 test4]# cat test.txt e f j d …
-
内存泄漏
可达性分析算法来判断对象是否是不再使用的对象,本质都是判断一个对象是否还被引用。那么对于这种情况下,由于代码的实现不同就会出现很多种内存泄漏问题主要原因:内核以为此对象还在引用中,无法回收,造成内存…