server { listen 443 ssl; #监听443端口 server_name www.app01.com; ssl on; #启用ssl加密 ssl_certificate /etc/cert/xip.io.crt; #服务器证书crt文件 ... ...
分类:
Web程序 时间:
2016-12-17 16:26:41
阅读次数:
250
恢复内容开始 数据库的操作一般来说都是CRUD,这其中最难的就是查询,所有所我们先来了解MongoDB中的 插入(insert) 说到插入,我们就必须得说说如何创建数据库,如何创建集合,然后才是如何创建文档. 在这里说到的集合也就是关系型数据库中的表(Table),文档也就是(Row). 现在我们要 ...
分类:
数据库 时间:
2016-12-17 14:12:49
阅读次数:
228
Introduction RabbitMQ is a message broker. The principal idea is pretty simple: it accepts and forwards messages. You can think about it as a post off ...
分类:
其他好文 时间:
2016-12-16 09:49:15
阅读次数:
282
Lambda语法详解 我们在此抽象一下lambda表达式的一般语法: 1 (Type1 param1, Type2 param2, ..., TypeN paramN) -> { 2 statment1; 3 statment2; 4 //............. 5 return statmen ...
分类:
编程语言 时间:
2016-12-14 21:14:35
阅读次数:
628
1、一个接口的形式要求是:IP+端口,并且通信协议类型是:https,如何做域名解析: ①设置一个端口。同时在防火墙中打开这个端口,重启防火墙; ②在服务器上/etc/nginx/conf.d的目录下,增加一个nginx配置文件,相当于增加一个站点服务,只不过这个站点不用域名而是用IP地址加端口的方 ...
分类:
其他好文 时间:
2016-12-14 11:45:16
阅读次数:
173
上一节我们已经配置并测试 LBaaS,今天重点分析 Neutron 是如何用 Haproxy 来实现负责均衡的。 ...
分类:
其他好文 时间:
2016-12-14 07:49:00
阅读次数:
229
Complex is used to refer to the level of components in a system. If a problem is complex, it means that it has many components. Complexity does not ev ...
分类:
其他好文 时间:
2016-12-12 17:17:26
阅读次数:
244
mport random //导入ramdom模块 print random.random() //生成0,1之间的随机数 print random.randint(1,5) //生成1,5之间的随机数 print random.randrange(1,3) //生成大于等于1,小于3的数 验证码 ...
分类:
编程语言 时间:
2016-12-12 13:50:30
阅读次数:
164
【政治】墨西哥墙上行走(川普系列3)@XP|20161208 Wall-walking: Mexico Enrique Peña Nieto was castigated at home for his presidential summit with Donald Trump in August. ...
分类:
其他好文 时间:
2016-12-11 23:12:29
阅读次数:
321
#Author by Andy#_*_ coding:utf-8 _*_import timefrom collections import Iterable#列表生成式def func(): list=[] for i in range(10000000): list.append(i) prin ...
分类:
编程语言 时间:
2016-12-11 12:27:29
阅读次数:
233