01 2020 档案

摘要:方法1:while循环中执行效率最高,最常用的方法。 function while_read_LINE_bottm(){ While read LINE do echo $LINE done < $FILENAME } #!/bin/bash while read line do echo $lin 阅读全文
posted @ 2020-01-16 16:40 借你耳朵说爱你 阅读(5008) 评论(0) 推荐(0)
摘要:#!/bin/bash ssh root@192.168.1.102 << remotessh #首先要ssh上去,ssh的配置可以点击此链接看,注意这里的<< remotessh #从这里开始都是在远程机器上执行命令啦 cd /tmp/test/ rm -f test.txt cat test.l 阅读全文
posted @ 2020-01-16 15:58 借你耳朵说爱你 阅读(4390) 评论(0) 推荐(1)
摘要:第一步:明确查看具体线程PID 第二步:使用jstack命令 jstack Pid > jstack_info.txt #查询信息输出TXT中 阅读全文
posted @ 2020-01-16 15:53 借你耳朵说爱你 阅读(880) 评论(0) 推荐(0)
摘要:第一步:在本地机器上使用ssh-keygen产生公钥私钥对 ssh-keygen 第二步:用ssh-copy-id将公钥复制到远程机器中 ssh-copy-id -i .ssh/id_rsa.pub 用户名字@192.168.x.xxx 第三步: 登录到远程机器不用输入密码 ssh 用户名字@192 阅读全文
posted @ 2020-01-14 18:01 借你耳朵说爱你 阅读(1275) 评论(0) 推荐(0)
摘要:byte b = 35; String s=Byte.toString(b); String s=b + ""; String s=new String(new byte[] {b}); 阅读全文
posted @ 2020-01-02 09:17 借你耳朵说爱你 阅读(7289) 评论(0) 推荐(1)