【原创】python基于大数据现实双色球预测
前提准备:利用sql筛选出每个球出现概率最高的前5个数
原理:先爬出所有的历史数据,然后模拟摇奖机出球的机制并大量模拟计算,直到出现列表中的某一个数后即停
注意事项:由于计算过程数据量很大,需要加入内存释放的操作
成果:目前博主最好记录是中了3红1蓝,适合学习交流使用,信则有
- #coding=utf-8
- import random
- import time
- import gc
- import datetime
- from collections import Counter
- try:
- dt = datetime.datetime.now()
- time.sleep(1)
- print u'程序启动时间:'+dt.strftime('%Y-%m-%d %H:%M:%S')
- time.sleep(2)
- print u'程序正在计算......'
- real_red_1 = [1, 2, 3, 4, 5]
- real_red_2 = [7, 8, 6, 9, 5]
- real_red_3 = [14, 11, 13, 16, 12]
- real_red_4 = [20, 17, 22, 23, 18]
- real_red_5 = [26, 27, 25, 28, 24]
- real_red_6 = [32, 33, 31, 30, 29]
- real_blue = [9, 12, 11, 14, 6,13,7,15]
- def num_red_1():
- i = 0
- numlist_1 = []
- numlist_2 = []
- numlist_3 = []
- numlist_4 = []
- numlist_5 = []
- while i < 10000:
- i = i + 1
- numlist_1.append(random.randint(1, 33))
- gc.collect()
- numlist_2.append(random.randint(1, 33))
- gc.collect()
- numlist_3.append(random.randint(1, 33))
- gc.collect()
- numlist_4.append(random.randint(1, 33))
- gc.collect()
- numlist_5.append(random.randint(1, 33))
- global numlist
- numlist = numlist_1 + numlist_2 + numlist_3 + numlist_4 + numlist_5
- numpercent = {}
- for d in set(numlist):
- numpercent[numlist.count(d)] = d
- for e in reversed(sorted(numpercent.keys())[-1:]):
- return numpercent[e]
- while True:
- for i in range(10000):
- num_red_1()
- bingonum_red_1 = num_red_1()
- if bingonum_red_1 not in real_red_1:
- continue
- c = Counter(numlist)
- # print c[bingonum_red_1]
- if bingonum_red_1 == 1:
- numberA = c[bingonum_red_1]/float(50000)
- numberB = 384/float(2004)
- # print numberA
- # print numberB
- # print '%.2f%%'%(numberA / numberB*100)
- print u'一号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_1) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_1 == 2:
- numberA = c[bingonum_red_1]/float(50000)
- numberB = 307/float(2004)
- print u'一号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_1) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_1 == 3:
- numberA = c[bingonum_red_1]/float(50000)
- numberB = 255/float(2004)
- print u'一号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_1) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_1 == 4:
- numberA = c[bingonum_red_1]/float(50000)
- numberB = 209/float(2004)
- print u'一号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_1) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- else:
- numberA = c[bingonum_red_1]/float(50000)
- numberB = 175/float(2004)
- print u'一号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_1) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- break
- break
- time.sleep(5)
- def num_red_2():
- i = 0
- numlist_1 = []
- numlist_2 = []
- numlist_3 = []
- numlist_4 = []
- numlist_5 = []
- while i < 10000:
- i = i + 1
- numlist_1.append(random.randint(1, 33))
- gc.collect()
- numlist_2.append(random.randint(1, 33))
- gc.collect()
- numlist_3.append(random.randint(1, 33))
- gc.collect()
- numlist_4.append(random.randint(1, 33))
- gc.collect()
- numlist_5.append(random.randint(1, 33))
- global numlist
- numlist = numlist_1 + numlist_2 + numlist_3 + numlist_4 + numlist_5
- numpercent = {}
- for d in set(numlist):
- numpercent[numlist.count(d)] = d
- for e in reversed(sorted(numpercent.keys())[-1:]):
- return numpercent[e]
- while True:
- for i in range(10000):
- num_red_2()
- bingonum_red_2 = num_red_2()
- if bingonum_red_2 not in real_red_2:
- continue
- c = Counter(numlist)
- if bingonum_red_2 == 7:
- numberA = c[bingonum_red_2]/float(50000)
- numberB = 181/float(2004)
- print u'二号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_2) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_2 == 8:
- numberA = c[bingonum_red_2]/float(50000)
- numberB = 168/float(2004)
- print u'二号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_2) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_2 == 6:
- numberA = c[bingonum_red_2]/float(50000)
- numberB = 160/float(2004)
- print u'二号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_2) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_2 == 9:
- numberA = c[bingonum_red_2]/float(50000)
- numberB = 140/float(2004)
- print u'二号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_2) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- else:
- numberA = c[bingonum_red_2]/float(50000)
- numberB = 140/float(2004)
- print u'二号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_2) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- break
- break
- time.sleep(5)
- def num_red_3():
- i = 0
- numlist_1 = []
- numlist_2 = []
- numlist_3 = []
- numlist_4 = []
- numlist_5 = []
- while i < 10000:
- i = i + 1
- numlist_1.append(random.randint(1, 33))
- gc.collect()
- numlist_2.append(random.randint(1, 33))
- gc.collect()
- numlist_3.append(random.randint(1, 33))
- gc.collect()
- numlist_4.append(random.randint(1, 33))
- gc.collect()
- numlist_5.append(random.randint(1, 33))
- global numlist
- numlist = numlist_1 + numlist_2 + numlist_3 + numlist_4 + numlist_5
- numpercent = {}
- for d in set(numlist):
- numpercent[numlist.count(d)] = d
- for e in reversed(sorted(numpercent.keys())[-1:]):
- return numpercent[e]
- while True:
- for i in range(10000):
- num_red_3()
- bingonum_red_3 = num_red_3()
- if bingonum_red_3 not in real_red_3:
- continue
- c = Counter(numlist)
- if bingonum_red_3 == 14:
- numberA = c[bingonum_red_3]/float(50000)
- numberB = 147/float(2004)
- print u'三号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_3) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_3 == 11:
- numberA = c[bingonum_red_3]/float(50000)
- numberB = 136/float(2004)
- print u'三号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_3) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_3 == 13:
- numberA = c[bingonum_red_3]/float(50000)
- numberB = 129/float(2004)
- print u'三号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_3) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_3 == 16:
- numberA = c[bingonum_red_3]/float(50000)
- numberB = 128/float(2004)
- print u'三号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_3) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- else:
- numberA = c[bingonum_red_3]/float(50000)
- numberB = 125/float(2004)
- print u'三号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_3) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- break
- break
- time.sleep(5)
- def num_red_4():
- i = 0
- numlist_1 = []
- numlist_2 = []
- numlist_3 = []
- numlist_4 = []
- numlist_5 = []
- while i < 10000:
- i = i + 1
- numlist_1.append(random.randint(1, 33))
- gc.collect()
- numlist_2.append(random.randint(1, 33))
- gc.collect()
- numlist_3.append(random.randint(1, 33))
- gc.collect()
- numlist_4.append(random.randint(1, 33))
- gc.collect()
- numlist_5.append(random.randint(1, 33))
- global numlist
- numlist = numlist_1 + numlist_2 + numlist_3 + numlist_4 + numlist_5
- numpercent = {}
- for d in set(numlist):
- numpercent[numlist.count(d)] = d
- for e in reversed(sorted(numpercent.keys())[-1:]):
- return numpercent[e]
- while True:
- for i in range(10000):
- num_red_4()
- bingonum_red_4 = num_red_4()
- if bingonum_red_4 not in real_red_4:
- continue
- c = Counter(numlist)
- if bingonum_red_4 == 20:
- numberA = c[bingonum_red_4]/float(50000)
- numberB = 147/float(2004)
- print u'四号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_4) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_4 == 17:
- numberA = c[bingonum_red_4]/float(50000)
- numberB = 146/float(2004)
- print u'四号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_4) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_4 == 22:
- numberA = c[bingonum_red_4]/float(50000)
- numberB = 144/float(2004)
- print u'四号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_4) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_4 == 23:
- numberA = c[bingonum_red_4]/float(50000)
- numberB = 132/float(2004)
- print u'四号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_4) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- else:
- numberA = c[bingonum_red_4]/float(50000)
- numberB = 129/float(2004)
- print u'四号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_4) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- break
- break
- time.sleep(5)
- def num_red_5():
- i = 0
- numlist_1 = []
- numlist_2 = []
- numlist_3 = []
- numlist_4 = []
- numlist_5 = []
- while i < 10000:
- i = i + 1
- numlist_1.append(random.randint(1, 33))
- gc.collect()
- numlist_2.append(random.randint(1, 33))
- gc.collect()
- numlist_3.append(random.randint(1, 33))
- gc.collect()
- numlist_4.append(random.randint(1, 33))
- gc.collect()
- numlist_5.append(random.randint(1, 33))
- global numlist
- numlist = numlist_1 + numlist_2 + numlist_3 + numlist_4 + numlist_5
- numpercent = {}
- for d in set(numlist):
- numpercent[numlist.count(d)] = d
- for e in reversed(sorted(numpercent.keys())[-1:]):
- return numpercent[e]
- while True:
- for i in range(10000):
- num_red_5()
- bingonum_red_5 = num_red_5()
- if bingonum_red_5 not in real_red_5:
- continue
- c = Counter(numlist)
- if bingonum_red_5 == 26:
- numberA = c[bingonum_red_5]/float(50000)
- numberB = 173/float(2004)
- print u'五号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_5) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_5 == 27:
- numberA = c[bingonum_red_5]/float(50000)
- numberB = 167/float(2004)
- print u'五号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_5) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_5 == 25:
- numberA = c[bingonum_red_5]/float(50000)
- numberB = 164/float(2004)
- print u'五号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_5) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_5 == 28:
- numberA = c[bingonum_red_5]/float(50000)
- numberB = 160/float(2004)
- print u'五号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_5) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- else:
- numberA = c[bingonum_red_5]/float(50000)
- numberB = 133/float(2004)
- print u'五号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_5) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- break
- break
- time.sleep(5)
- def num_red_6():
- i = 0
- numlist_1 = []
- numlist_2 = []
- numlist_3 = []
- numlist_4 = []
- numlist_5 = []
- while i < 10000:
- i = i + 1
- numlist_1.append(random.randint(1, 33))
- gc.collect()
- numlist_2.append(random.randint(1, 33))
- gc.collect()
- numlist_3.append(random.randint(1, 33))
- gc.collect()
- numlist_4.append(random.randint(1, 33))
- gc.collect()
- numlist_5.append(random.randint(1, 33))
- global numlist
- numlist = numlist_1 + numlist_2 + numlist_3 + numlist_4 + numlist_5
- numpercent = {}
- for d in set(numlist):
- numpercent[numlist.count(d)] = d
- for e in reversed(sorted(numpercent.keys())[-1:]):
- return numpercent[e]
- while True:
- for i in range(10000):
- num_red_6()
- bingonum_red_6 = num_red_6()
- if bingonum_red_6 not in real_red_6:
- continue
- c = Counter(numlist)
- if bingonum_red_6 == 32:
- numberA = c[bingonum_red_6]/float(50000)
- numberB = 309/float(2004)
- print u'六号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_6) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_6 == 33:
- numberA = c[bingonum_red_6]/float(50000)
- numberB = 307/float(2004)
- print u'六号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_6) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_6 == 31:
- numberA = c[bingonum_red_6]/float(50000)
- numberB = 249/float(2004)
- print u'六号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_6) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_red_6 == 30:
- numberA = c[bingonum_red_6]/float(50000)
- numberB = 221/float(2004)
- print u'六号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_6) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- else:
- numberA = c[bingonum_red_6]/float(50000)
- numberB = 202/float(2004)
- print u'六号红球预测完成' + ' ' + u'号码:' + str(bingonum_red_6) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- break
- break
- time.sleep(5)
- def num_blue():
- i = 0
- numlist_1 = []
- numlist_2 = []
- numlist_3 = []
- numlist_4 = []
- numlist_5 = []
- while i < 10000:
- i = i + 1
- numlist_1.append(random.randint(1, 16))
- gc.collect()
- numlist_2.append(random.randint(1, 16))
- gc.collect()
- numlist_3.append(random.randint(1, 16))
- gc.collect()
- numlist_4.append(random.randint(1, 16))
- gc.collect()
- numlist_5.append(random.randint(1, 16))
- global numlist
- numlist = numlist_1 + numlist_2 + numlist_3 + numlist_4 + numlist_5
- numpercent = {}
- for d in set(numlist):
- numpercent[numlist.count(d)] = d
- for e in reversed(sorted(numpercent.keys())[-1:]):
- return numpercent[e]
- while True:
- for i in range(10000):
- num_blue()
- bingonum_blue = num_blue()
- if bingonum_blue not in real_blue:
- continue
- c = Counter(numlist)
- if bingonum_blue == 9:
- numberA = c[bingonum_blue]/float(50000)
- numberB = 140/float(2004)
- print u'蓝球预测完成' + ' ' + u'号码:' + str(bingonum_blue) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_blue == 12:
- numberA = c[bingonum_blue]/float(50000)
- numberB = 136/float(2004)
- print u'蓝球预测完成' + ' ' + u'号码:' + str(bingonum_blue) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_blue == 11:
- numberA = c[bingonum_blue]/float(50000)
- numberB = 135/float(2004)
- print u'蓝球预测完成' + ' ' + u'号码:' + str(bingonum_blue) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_blue == 14:
- numberA = c[bingonum_blue]/float(50000)
- numberB = 130/float(2004)
- print u'蓝球预测完成' + ' ' + u'号码:' + str(bingonum_blue) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_blue == 6:
- numberA = c[bingonum_blue]/float(50000)
- numberB = 129/float(2004)
- print u'蓝球预测完成' + ' ' + u'号码:' + str(bingonum_blue) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_blue == 13:
- numberA = c[bingonum_blue]/float(50000)
- numberB = 129/float(2004)
- print u'蓝球预测完成' + ' ' + u'号码:' + str(bingonum_blue) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- elif bingonum_blue == 7:
- numberA = c[bingonum_blue]/float(50000)
- numberB = 128/float(2004)
- print u'蓝球预测完成' + ' ' + u'号码:' + str(bingonum_blue) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- else:
- numberA = c[bingonum_blue]/float(50000)
- numberB = 128/float(2004)
- print u'蓝球预测完成' + ' ' + u'号码:' + str(bingonum_blue) + ' ' + u'中奖概率' + str(
- '%.2f%%' % (numberB*(1+numberA)*100))
- break
- break
- finally:
- raw_input()
【原创】python基于大数据现实双色球预测的更多相关文章
- Python/Numpy大数据编程经验
Python/Numpy大数据编程经验 1.边处理边保存数据,不要处理完了一次性保存.不然程序跑了几小时甚至几天后挂了,就啥也没有了.即使部分结果不能实用,也可以分析程序流程的问题或者数据的特点. ...
- H2O是开源基于大数据的机器学习库包
H2O是开源基于大数据的机器学习库包 H2O能够让Hadoop做数学,H2O是基于大数据的 统计分析 机器学习和数学库包,让用户基于核心的数学积木搭建应用块代码,采取类似R语言 Excel或JSON等 ...
- 黑马基础阶段测试题:创建一个存储字符串的集合list,向list中添加以下字符串:”C++”、”Java”、” Python”、”大数据与云计算”。遍历集合,将长度小于5的字符串从集合中删除,删除成功后,打印集合中的所有元素
package com.swift; import java.util.ArrayList; import java.util.List; import java.util.ListIterator; ...
- 【Python开发】Python 适合大数据量的处理吗?
Python 适合大数据量的处理吗? python 能处理数据库中百万行级的数据吗? 处理大规模数据时有那些常用的python库,他们有什么优缺点?适用范围如何? 需要澄清两点之后才可以比较全面的看这 ...
- 为什么说Python 是大数据全栈式开发语言
欢迎大家访问我的个人网站<刘江的博客和教程>:www.liujiangblog.com 主要分享Python 及Django教程以及相关的博客 交流QQ群:453131687 原文链接 h ...
- 大数据征信的应用和启示:ZestFinance的基于大数据的信用评估技术
http://www.d1net.com/bigdata/news/325426.html 2014年11月,本文作者有机会和ZestFinance的创始人和首席执行官梅里尔(Douglas C.Me ...
- python学习--大数据与科学计算第三方库简介
大数据与科学计算 库名称 简介 pycuda/opencl GPU高性能并发计算 Pandas python实现的类似R语言的数据统计.分析平台.基于NumPy和Matplotlib开发的,主要用于 ...
- 深度剖析 | 基于大数据架构的BI应用
说起互联网.电商的数据分析,更多的是谈应用案例,如何去实践数据化管理运营.而这里,我们要从技术角度分享关于数据的技术架构干货,如何应用BI. 原文是云猴网BI总经理王卫东在帆软大数据上的演讲,以下是整 ...
- 菜鸟学python之大数据的初认识
这次作业的要求来自于:https://edu.cnblogs.com/campus/gzcc/GZCC-16SE1/homework/2639 1.这些分析所采用数据来源是什么? 国家数据库:中国铁路 ...
随机推荐
- LINUX 笔记-命令执行顺序 && ,||
&& 格式:命令1 && 命令2 说明:命令1返回真(即返回0,成功被执行)后,命令2才能够被执行 例:/apps/bin目录将会被移到/apps/dev/bin目录下 ...
- label联动checkbox
label联动checkbox时,若label包含在checkbox外层时label不需for属性,设置label的display属性为block时可以使整个div联动.
- LeetCode 238. Product of Array Except Self (去除自己的数组之积)
Given an array of n integers where n > 1, nums, return an array output such that output[i] is equ ...
- System.getProperty参数大全
System.getProperty()参数大全 #java.version Java Runtime Environment v ...
- ES6 let和const详解及使用细节
ES6之前javascript只有全局作用域和函数作用域,所以经常会遇到变量提升了或者使用闭包的时候出错的问题. 所有a[i]都会输出10: var arr=[]; for (var i=0;i< ...
- Zernike不变矩
1.Zernike矩介绍 Zernike矩是基于 Zernike多项式的正交化函数,所利用的正交多项式集是 1个在单位圆内的完备正交集.Zernike矩是复数矩 ,一般把 Zernike矩的模作为特征 ...
- Leetcode题解(21)
62. Unique Paths 题目 分析: 机器人一共要走m+n-2步,现在举个例子类比,有一个m+n-2位的二进制数,现在要在其中的m位填0,其余各位填1,一共有C(m+n-2,m-1)种可能, ...
- Peaceful Commission
Peaceful Commission Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others ...
- Mybatis动态查询语句
MyBatis中动态SQL语句完成多条件查询 标签: mybatis动态SQL多条件查询java.sql.SQLSyntaxEr 2015-06-29 19:00 22380人阅读 评论(0) 收藏 ...
- Elasticsearch集群调优
系统调优 禁用swap 使用swapoff命令可以暂时关闭swap.永久关闭需要编辑/etc/fstab,注释掉swap设备的挂载项. swapoff -a 如果完全关闭swap不可行,可以试着降低s ...