上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页
摘要: sg = "ls"def sout new StringBuilder(), serr new StringBuilder()def proc = ["/bin/bash", "-c", sg].execute()proc.consumeProcessOutput(sout, serr)proc.w 阅读全文
posted @ 2021-06-23 09:29 i舒 阅读(363) 评论(0) 推荐(0) 编辑
摘要: expect send send_user #打印输出 puts打印字符到屏幕 sleep 休眠 xx s wait 等待进程执行结束 expect eof 退出expect进程 set timeout #设置等待超时时长 expect最常用的语法(tcl语言:模式-动作) 单一分支模式语法: ex 阅读全文
posted @ 2021-06-23 08:33 i舒 阅读(547) 评论(0) 推荐(0) 编辑
摘要: 我们做脚本编程的时候开头总会遇到以下语句,这些语句就是指定解释器,指定什么解释器就用该解释器运行: #!/usr/bin/bash #!/usr/bin/python #!/usr/bin/expect #!/usr/bin/env python 执行的时候就有两种方式 一种是解释器+脚本 另一种是 阅读全文
posted @ 2021-06-22 08:06 i舒 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 需要设置代理的话先设置代理,再安装。 ubuntu docker 安装 apt-get update apt install docker.io systemctl start docker systemctl enable docker Refer to link: https://phoenix 阅读全文
posted @ 2021-06-18 18:52 i舒 阅读(16) 评论(0) 推荐(0) 编辑
摘要: df -h pvdisplay vgdisplay fdisk -l #查看并找出新加磁盘 wipefs -a /dev/sdb #如已有分区表需先擦除,否则可跳过 #在新磁盘创建物理卷: pvcreate /dev/sdb #将新磁盘添加到目标物理卷组 vgextend rootvg /dev/s 阅读全文
posted @ 2021-06-17 19:20 i舒 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 设置共享库:https://www.cnblogs.com/mascot1/p/10502768.html jenkinsfile中使用: https://www.cnblogs.com/k4nz/p/14361392.html 阅读全文
posted @ 2021-06-17 09:35 i舒 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 安装了openssh-server之后,默认情况下是不允许root用户通过ssh远程登录的,只允许一般用户通过ssh登录系统。要开启root用户远程登录的权限, 需要通过文本编辑器修改配置文件/etc/ssh/sshd_config文件,将PermitRootLogin的选项值设置为yes即可 ht 阅读全文
posted @ 2021-06-16 13:07 i舒 阅读(187) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/e27a978ddb88 https://www.cnblogs.com/lsgxeva/p/8540758.html 阅读全文
posted @ 2021-06-11 08:18 i舒 阅读(22) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/jamespeng/p/14803921.html https://www.cnblogs.com/tylerzhou/p/11444579.html 阅读全文
posted @ 2021-06-11 07:48 i舒 阅读(264) 评论(0) 推荐(0) 编辑
摘要: https://www.codenong.com/15436915/ 阅读全文
posted @ 2021-05-31 13:32 i舒 阅读(248) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页