环境:SUSE SESv5版本——对应社区ceph的L版本(12.2) 故障背景:在给ceph集群扩充第四个节点的时候,运行到stage4,报错: sesadmin:~ # salt-run state.orch ceph.stage.4 openattic : valid [ERROR ] Run ...
分类:
其他好文 时间:
2018-09-06 18:19:08
阅读次数:
2311
一、环境准备 系统:centos7 and centos6.8 172.16.1.11 二、开始安装 安装yum源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 安装epe ...
分类:
其他好文 时间:
2018-09-06 12:38:21
阅读次数:
178
用md5进行进行加密,为了防止撞库,所以一定要加盐,因为加密后不可以反解,因此进行校对时可以使用密文进行,还需注意的是md5加密的是字节,所以需要用encode进行编码 加密实例 import hashlib salt = b"asdfghjkl;ei" def func(pwd): # 实例化对象 ...
分类:
其他好文 时间:
2018-08-31 21:04:53
阅读次数:
179
服务器ip系统版本192.168.24.130centos7#!/bin/bashfan=$(opensslpasswd-1-salt"$RANDOM"‘linfan123‘)linip=192.168.24.130#stopfirewalld#systemctlstopfirewalld#systemctldisablefirewalld#sed-ri‘s/(SELINUX=).*/\1disa
分类:
其他好文 时间:
2018-08-30 00:21:09
阅读次数:
164
关于进程 Process what is process ? 什么是进程 process life cycle 进程的生命周期 process states 进程状态 什么是进程? 进程是已启动的可执行程序的运行实例,进程有以下组成部分: ? 已分配内存的地址空间; ? 安全属性,包括所有权凭据和特 ...
分类:
系统相关 时间:
2018-08-27 00:18:26
阅读次数:
288
说明: 1/因为赚麻烦这里没有使用数据库或服务器缓存来存储access_token和jsapi_ticket,为了方便这里使用了本地的xml进行持久化这两个值以及这两个值的创建时间和有限期限。 2/每次请求先检查有没有存在并且在有效期内的access_token和jsapi_ticket,存在的话直 ...
分类:
微信 时间:
2018-08-23 02:13:20
阅读次数:
215
最近研究内存关系数据库的设计与实现,下面一篇为berkeley db原始两位作为的Berkeley DB设计回忆录: Conway's Law states that a design reflects the structure of the organization that produced ...
分类:
移动开发 时间:
2018-08-22 21:53:25
阅读次数:
162
states是saltstack中的配置语言,我们安装一个包,管理一个配置文件,最后保证服务的正常运行,都需要我们编写一些states sls文件(描述状态的文件)去描述和实现我们的功能。sls文件都是YAML语法编写,也可以用python。 YAML语法规则:每个缩进级别由两个空格组成,不要使用t ...
分类:
其他好文 时间:
2018-08-21 17:13:18
阅读次数:
209
Word Amalgamation Description In millions of newspapers across the United States there is a word game called Jumble. The object of this game is to sol ...
分类:
其他好文 时间:
2018-08-19 13:59:39
阅读次数:
152
iptables模块基本函数方法:salt.modules.iptables.append(table=u‘filter‘,chain=None,rule=None,family=u‘ipv4‘)