2018年9月13日
摘要: V1.11.1https://github.com/kubernetes/kubernetes/releases/tag/v1.11.1环境准备:系统:centos7.2.1511[root@master ~]# cat /etc/redhat-release CentOS Linux releas 阅读全文
posted @ 2018-09-13 22:26 jamezhan 阅读(756) 评论(0) 推荐(0) 编辑
  2018年8月15日
摘要: Brog 自动装箱,自动修复,水平扩展,服务发现和负载均衡,自动发布和回滚 密钥和配置管理,存储编排,批量处理执行 阅读全文
posted @ 2018-08-15 23:22 jamezhan 阅读(458) 评论(0) 推荐(0) 编辑
  2018年7月4日
摘要: 1、命令安装: 接下来就更新源: 阅读全文
posted @ 2018-07-04 15:54 jamezhan 阅读(130) 评论(0) 推荐(0) 编辑
  2018年3月5日
摘要: #!/usr/bin/env python#ecoding=utf-8 f=open(r"D:\opsdev\olduser\oldused.txt","a+") newline=raw_input('input a string:')f.writelines(newline+"\n") f.clo 阅读全文
posted @ 2018-03-05 17:01 jamezhan 阅读(35819) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python#ecoding=utf-8'''Created on 2017年11月2日题目:利用递归函数调用方式,将所输入的5个字符,以相反顺序打印出来。 @author: James zhan''' def output(s,l): if l==0: return 阅读全文
posted @ 2018-03-05 16:06 jamezhan 阅读(905) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python#ecoding=utf-8'''Created on 2017年11月2日 @author: James zhan''' def fun(n): if n==1 or n==0: return 1 else: return fun(n-1)*ns = in 阅读全文
posted @ 2018-03-05 15:49 jamezhan 阅读(4245) 评论(0) 推荐(0) 编辑
  2018年2月28日
摘要: 删除每行空白字符 sed -i 's/^[[:space:]]*//' user.txt 删除空白行 sed -i '/^$/d' user.txt 阅读全文
posted @ 2018-02-28 10:31 jamezhan 阅读(112) 评论(0) 推荐(0) 编辑
  2018年1月31日
摘要: sed 's/^[[:space:]]*//' /tmp/0131ok.txt 阅读全文
posted @ 2018-01-31 16:34 jamezhan 阅读(123) 评论(0) 推荐(0) 编辑
  2018年1月25日
摘要: 以实际环境:维护环境172.30网段主机 Zabbix hosts export出主机信息至 /tmp/ip.txt shell筛选出ip [root@server ~]# cat /tmp/ip.txt | grep 172.30 | gawk -F">" '{print $2}' | gawk 阅读全文
posted @ 2018-01-25 17:27 jamezhan 阅读(141) 评论(0) 推荐(0) 编辑
  2017年12月25日
摘要: 问题如下: 1. cat -n file1file2 命令的意思是? A 只会把文件file1的内容输出到屏幕上。B 把文件file1和file2连在一起,然后输出到屏幕上。C 创建文件file1和file2D 把file2的内容输出到file1中并保存2. Linux下查看服务程序占用的端口命令是 阅读全文
posted @ 2017-12-25 11:53 jamezhan 阅读(915) 评论(0) 推荐(0) 编辑