会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
gg888666
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
13
下一页
2022年4月2日
07-shell-99-乘法表
摘要: 99乘法表 CMD1 && CMD2 短路与 第一个CMD1结果为真,第二个CMD2必须运算,才能得到最后的结果 第一个CMD1结果为假,总的结果必定为0,因此第二个CMD2不需要执行 大于 -gt (greater than) 小于 -lt (less than) 大于等于 -ge (greate
阅读全文
posted @ 2022-04-02 21:00 gg888666
阅读(99)
评论(0)
推荐(0)
2022年4月1日
06-shell
摘要: 打印系统信息 root@ubuntu2004:~# bash system_info.sh #用 . bash不规范当前环境中执行,COLOR会变,其他引用者调用错误值 #!/bin/bash RED="\E[1;31m" GREEN="echo -e \E[1;32m" END="\E[0m" .
阅读全文
posted @ 2022-04-01 21:23 gg888666
阅读(82)
评论(0)
推荐(0)
2022年3月31日
05-文本处理三剑客
摘要: grep grep -A 显示匹配指定内容及之后的n行 grep -B 显示匹配指定内容及之前的n行 grep -C 显示匹配指定内容及其前后各n行 root@ubuntu2004:~# ifconfig ens33 |grep -o '[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]
阅读全文
posted @ 2022-03-31 21:18 gg888666
阅读(37)
评论(0)
推荐(0)
05-Tomcat性能调优及JVM内存工作原理
摘要: Java性能优化方向:代码运算性能、内存回收、应用配置。 注:影响Java程序主要原因是垃圾回收,下面会重点介绍这方面 代码层优化:避免过多循环嵌套、调用和复杂逻辑。Tomcat调优主要内容如下:1、增加最大连接数2、调整工作模式3、启用gzip压缩4、调整JVM内存大小5、作为Web时,动静分离6
阅读全文
posted @ 2022-03-31 11:32 gg888666
阅读(270)
评论(0)
推荐(0)
05-干货 | 吃透Elasticsearch 堆内存
摘要: 1、什么是堆内存? Java 中的堆是 JVM 所管理的最大的一块内存空间,主要用于存放各种类的实例对象。在 Java 中,堆被划分成两个不同的区域: 新生代 ( Young )、老年代 ( Old )。新生代 ( Young ) 又被划分为三个区域: Eden、From Survivor、To S
阅读全文
posted @ 2022-03-31 09:04 gg888666
阅读(149)
评论(0)
推荐(0)
2022年3月29日
04-docker-安装
摘要: [root@localhost ~]# cat install_docker.sh #!/bin/bash # #******************************************************************** #Author: Gexuchuan #****
阅读全文
posted @ 2022-03-29 21:01 gg888666
阅读(42)
评论(0)
推荐(0)
04-文本处理工具
摘要: 取ip [root@localhost ~]# hostname -I| cut -d " " -f1 192.168.80.171 [root@localhost ~]# ifconfig ens33 |head -n2|grep -v ens33 |tr -s " " |cut -d " " -
阅读全文
posted @ 2022-03-29 17:11 gg888666
阅读(70)
评论(0)
推荐(0)
04-用户和组
摘要: [root@localhost data]# useradd -G bin,root -s /bin/csh -c "Gentoo Distribution" gentoo [root@localhost data]# id gentoo uid=1008(gentoo) gid=1008(gent
阅读全文
posted @ 2022-03-29 17:11 gg888666
阅读(119)
评论(0)
推荐(0)
2022年3月26日
03-目录管理和软连接-find-xargs
摘要: [root@localhost data]# rm -rf /data /* #有空格删根 1,find | xargs 文件相关信息:metadata, data 每个文件有三个时间戳: access time 访问时间,atime,读取文件内容 modify time 修改时间,mtime,改变
阅读全文
posted @ 2022-03-26 22:37 gg888666
阅读(267)
评论(0)
推荐(0)
02-linux-命令
摘要: date -d @1584689051 +%F_%T 关机: poweroff init 0 shutdown -h now 重启: reboot -f: 强制,不调用shutdown -p: 切断电源 ctrl+alt+delete 三个键 init 6 shutdown -r now 关机或重启
阅读全文
posted @ 2022-03-26 21:02 gg888666
阅读(62)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
13
下一页
公告