摘要: -A是显示匹配后和它后面的n行。 -B是显示匹配行和它前面的n行。 -C是匹配行和它前后各n行grep -A 行数 -B 行数 "关键字" 待查询的文件。 cat catalina.out |grep -A1 -B1 'xxxxxx' grep -A 行数 -B 行数 "关键字" 待查询的文件 ca 阅读全文
posted @ 2021-03-02 11:10 zshblog 阅读(810) 评论(0) 推荐(0) 编辑
摘要: 1、检查防火墙是否开放22端口 2、检查ssh是否安装 rpm -qa |grep ssh sudo apt-get install rpm sudo apt-get install ssh sudo service ssh restart 连接成功 安装ssh 阅读全文
posted @ 2021-01-13 23:18 zshblog 阅读(670) 评论(0) 推荐(0) 编辑
摘要: cat /proc/cpuinfo |grep "processor" |wc -l 阅读全文
posted @ 2021-01-13 16:09 zshblog 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 1、先是挂在根目录: 选主分区 / 磁盘类型:ext4 20G 用于存放系统文件 2、设置swap区域 : 逻辑分区 swap 2G 内存 3、设置引导分区: 逻辑分区 /boot 磁盘类型:ext4 ,200M 4、设置用户分区: 逻辑分区 /home 磁盘类型:ext4 ,尽量大 用来存用户数据 阅读全文
posted @ 2021-01-13 11:56 zshblog 阅读(4659) 评论(0) 推荐(0) 编辑
摘要: 并发量*接口大小(KB)*8/1024=Mbps 如接口是60KB,并发量是1000,则1000*60KB*8/1024=468Mbps 阅读全文
posted @ 2021-01-13 11:50 zshblog 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 根据进程查询端口: netstat -anp|grep pid lsof -i | grep pid 根据端口查询进程 netstat -anp|grep port 根据进程查询应用目录: ll /proc/pid 1.查看当前目录下的所有目录的大小(使用-h参数)du -h2.查看当前目录下的所有 阅读全文
posted @ 2020-11-12 18:52 zshblog 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 转载: https://blog.csdn.net/weixin_34352449/article/details/93626436 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId> 阅读全文
posted @ 2020-08-26 10:16 zshblog 阅读(161) 评论(0) 推荐(0) 编辑
摘要: C# itextsharp 调用pdfescape desktop 画的模板。java 对应itext 阅读全文
posted @ 2020-08-26 10:06 zshblog 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 转载: https://blog.csdn.net/weixin_34352449/article/details/93626436 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId> 阅读全文
posted @ 2020-08-22 12:44 zshblog 阅读(160) 评论(0) 推荐(0) 编辑
摘要: windows: set a=C:\Program Files\java64\jdk1.7.0_60\bin "%a%\java.exe" -Xms9m -Xmx9m -XX:PermSize=24m -XX:MaxPermSize=24m -Dfile.encoding=GBK -Duser.la 阅读全文
posted @ 2020-08-22 12:01 zshblog 阅读(140) 评论(0) 推荐(0) 编辑