总体部署 一主二从三哨兵 ip地址分配分别为 一主二从的配置文件 redis.conf设置 主的保持默认的不变 二个从的分别打开配置文件 找到设置端口的地方 分别设置为 6389 和6399 # Accept connections on the specified port, default is ...
分类:
其他好文 时间:
2017-12-01 11:36:56
阅读次数:
179
下面是完整的 G1 的 GC 开关参数列表. ...
分类:
其他好文 时间:
2017-11-30 12:07:07
阅读次数:
172
sql事务(Transaction)用法介绍及回滚实例 事务(Transaction)是并发控制的单位,是用户定义的一个操作序列。这些操作要么都做,要么都不做,是一个不可分割的工作单位。通过事务,SQL Server能将逻辑相关的一组操作绑定在一起,以便服务器保持数据的完整性 当对多个表进行更新的时 ...
分类:
数据库 时间:
2017-11-30 10:23:52
阅读次数:
187
如果是传输过程中的安全性,需要通过https或者ssl保证如果是数据的安全性,需要合理定义transaction保证如果是线程的安全性,需要程序员手动解决 经典AJAX面试题 ...
分类:
Web程序 时间:
2017-11-29 22:00:25
阅读次数:
143
What is Debit note and Credit note? What is the purpose? How we create? 1. A transaction that reduces Amounts Receivable from a customer is a credit m ...
分类:
其他好文 时间:
2017-11-28 01:33:05
阅读次数:
241
#导包 from django.db import transaction try: #django默认是自动提交到数据库,此处设置不让其自动提交 transaction.set_autocommit(False) #处理的部分 transaction.commit() except Excepti ...
分类:
其他好文 时间:
2017-11-27 23:41:37
阅读次数:
122
错误:Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: The server time zone value '?????????' is unrecognized o ...
分类:
数据库 时间:
2017-11-26 20:31:34
阅读次数:
290
CUDA 9.0安装笔记 最近实验室新购买两块K80的GPU。作为好奇的小猪,当然会自报奋勇去配置环境。在这篇博客中将会介绍在centos7下配置CUDA 9.0的步骤。 1. 什么是CUDA? 引用官方介绍 CUDA? is a parallel computing platform and pr ...
分类:
其他好文 时间:
2017-11-26 11:12:10
阅读次数:
5299
Your are given an array of integers prices, for which the i-th element is the price of a given stock on day i; and a non-negative integer fee represen ...
分类:
其他好文 时间:
2017-11-25 00:52:44
阅读次数:
129
一、 创建Stream 1.0 创建Stream方式一: 集合类的stream()或 parallelStream() 2.0 创建Stream方式二: 通过Arrays中的静态方法stream()获取 3.0 创建Stream方式三: 通过Stream 类中的静态方法of() Stream<Str ...
分类:
编程语言 时间:
2017-11-24 23:55:22
阅读次数:
170