04 2018 档案

摘要:[root@kvm-node1 ~]# systemctl stop firewalld 查看虚拟化支持信息 [root@kvm-node1 ~]# egrep '(vmx|svm)' /proc/cpuinfo [root@kvm-node1 ~]# lsmod|grep kvmkvm_intel 阅读全文
posted @ 2018-04-26 15:23 厚德载物_VIP 阅读(375) 评论(0) 推荐(0)
摘要:个人是不太喜欢windows 系统的,但有时候没办法 业务已经用在Windows系统上面,今天碰到管理员密码还忘记了的情况,在此记录下 破解密码的过程 1、下载小白菜装机版u盘制作PE启动,详情参考官方网站 http://www.uqidong.asia/upqdpzzjc/upqdzz.html 阅读全文
posted @ 2018-04-24 18:38 厚德载物_VIP 阅读(1973) 评论(0) 推荐(0)
摘要:1、环境规划,三台主机 10.213.14.51/24 10.213.14.52/24 10.213.14.53/24 集群网络 172.140.140.11、22 172.140.140.12/22 172.140.140.13/22 复制网络 centos7.3 ceph版本 luminous 阅读全文
posted @ 2018-04-19 10:55 厚德载物_VIP 阅读(737) 评论(0) 推荐(0)
摘要:1、环境规划 10.213.50.138(主) redis+sentinel 10.213.50.168(从) redis+sentinel 10.213.50.227 作为客户端测试插入数 2、redis部署 wget http://download.redis.io/releases/redis 阅读全文
posted @ 2018-04-13 09:45 厚德载物_VIP 阅读(235) 评论(0) 推荐(0)
摘要:元组 1、()来定义 2、有序,同列表 3、元组一旦创建,不能被修改 注:元组的标识是逗号,不是括号 元组的定义 a = (1,2) type(a) <class 'tuple'> 元组的访问 a[1] 2 元组的切片 a[0:1] (1,) 集合 集合:描述元素种类的一种无序序列a = 'pyth 阅读全文
posted @ 2018-04-09 12:04 厚德载物_VIP 阅读(231) 评论(0) 推荐(0)
摘要:1、过滤问题 找出以ip开头的字符串 _input = ['ip_10.2.223.5', 'ip_10.2.220.3', 'port_22', 'port_8001', 'port_80', 'ip_172.16.8.35'] for item in _input: if item.starts 阅读全文
posted @ 2018-04-04 17:00 厚德载物_VIP 阅读(140) 评论(0) 推荐(0)
摘要:_input = ['I',6,6,'love','python',6] _str = '' _sum = 0 for item in _input: if isinstance(item,str): _str += item _str += ' ' elif isinstance(item,int 阅读全文
posted @ 2018-04-03 08:25 厚德载物_VIP 阅读(181) 评论(0) 推荐(0)