随心笔记,如有错误欢迎指正。saltminion和saltmaster之间重新建立认证修改了minion端的id之后比如修改了hostname之后,minion端会将minion的id存放在/etc/salt/minion_id文件中,重启不会改变。所以要重新认证就需要以下2步:1.清空minion_id>/etc/salt/minion_id2.删除min..
分类:
其他好文 时间:
2017-08-14 15:17:01
阅读次数:
141
一、备份 二、还原 1、创建sde用户名,新建同名数据库xxx,并指定sde为xxx的拥有者。 2、在master上创建sql查询,执行如下语句: ...
分类:
数据库 时间:
2017-08-14 15:15:54
阅读次数:
199
一、设置等宽的表格 table设置宽,则每列平分table的宽 示例 二、flexbox 布局 智能计算padding 容器属性(CSS的columns在伸缩容器上没有效果) flex-direction: row | row-reverse | column | column-reverse; f ...
分类:
Web程序 时间:
2017-08-14 00:34:03
阅读次数:
229
上传前先npm run build 后git push origin master 问题:chunk无法加载? 原因:在github.io请求chunk时,chunk的url使用的是publicPath设置的路径‘/dist/xx’,而实际上上传到github后的chunk路径为‘repositor ...
分类:
Web程序 时间:
2017-08-13 23:30:23
阅读次数:
166
命令: 命令manual git branch --all 用来查看所有分支(包括远程关联库的分支) chenruideMacBook-Pro:tt chenrui$ git branch --all dev * master remotes/tt2/master remotes/tt2/ss re ...
分类:
其他好文 时间:
2017-08-13 13:31:45
阅读次数:
179
1.设置git https://git.oschina.net/rigid/hr.git 上传如下文件: hr_config/my-client.yml hr_config/my-client-uat.yml 2.增加config server 启动之后访问:http://localhost:888 ...
分类:
编程语言 时间:
2017-08-13 13:27:40
阅读次数:
171
实现环境: Master 主:192.168.100.165 (Mysql 5.6.36) Slave 从 :192.168.100.156 (Mysql 5.6.36) 步骤1.在主DB服务器上建立复制账号 (在Master上执行) # mysql mysql> CREATE USER 'rpl' ...
分类:
数据库 时间:
2017-08-13 01:07:39
阅读次数:
240
久前, 玩过redis集群服务的搭建, 那种哨兵模式有点相似数据库的读写分离, 可是业务写入数据还是所有由一个逻辑上的master承担的, 详细方法可见 [哨兵]; 今天来根据Redis的官方说明部署把玩下分布式集群, 这样的模式能够配置多个master均分16384个hash slot, 使得不同 ...
分类:
Web程序 时间:
2017-08-13 00:17:06
阅读次数:
700
1.参考 tor? http://docs.python-requests.org/en/master/user/advanced/ Using Python’s urllib2 or Requests with a SOCKS5 proxy Python中Request 使用socks5代理的两种 ...
分类:
编程语言 时间:
2017-08-13 00:15:07
阅读次数:
273
1添加第三方库头文件添加json第三方库.pro文件中添加:INCLUDEPATH+=/root/jsoncpp-master/include测试是否成功#include<QCoreApplication>#include"json/reader.h"intmain(intargc,char*argv[]){QCoreApplicationa(argc,argv);Json::Readerreader;returna.exec();}添加..
分类:
其他好文 时间:
2017-08-12 22:38:11
阅读次数:
164