1、必须使能安全策略的http和https服务 2、生成ssl的密码时,cert和keyfile需要使用一个文件名 openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem 3、ubu ...
分类:
其他好文 时间:
2017-07-15 15:00:08
阅读次数:
140
开发wifi模块配置时,遇到post数据在后端无论用req.body还是用req.params都无法获得前端post过来的数据,经过baidu、google得到解决办法 前端post过来的数据是以 Request Payload 格式传给服务器, 这种格式数据是以流的形式传递给后端,此外以流的形式传 ...
分类:
其他好文 时间:
2017-07-13 18:55:12
阅读次数:
188
package main import ( "fmt" _ "math/rand" _ "time" ) type EndPoint func(req interface{}) interface{} type Middleware func(EndPoint) EndPoint func Chai ...
分类:
其他好文 时间:
2017-07-11 23:12:36
阅读次数:
139
术语说明: QPS = req/sec = 请求数/秒 【QPS计算PV和机器的方式】 QPS统计方式 [一般使用 http_load 进行统计] QPS = 总请求数 / ( 进程总数 * 请求时间 ) QPS: 单个进程每秒请求服务器的成功次数 单台服务器每天PV计算 公式1:每天总PV = Q ...
分类:
其他好文 时间:
2017-07-09 13:58:29
阅读次数:
266
在启动openstack的实例时报出:后面查看nova-compute.log,发现:2017-07-0614:38:27.8395943ERRORnova.compute.manager[req-0cda8b99-7837-493a-bf3c-26c0649be54122a99702c9074c6c876dc7698cf91375c66fe3ac25a74149bef9b187ad8d4543---]Instancefailednetworksetupafter1attem..
分类:
Web程序 时间:
2017-07-09 10:56:34
阅读次数:
2291
简介: requests是python的一个http客户端库,跟urlib、urlib2类似,requests模块是基于urlib模块开发的,代码实现更为简洁。 模块安装: pip install requests ,使用requests模块时直接import requests即可。 简单使用req ...
分类:
编程语言 时间:
2017-07-09 10:56:14
阅读次数:
457
这个问题是今天使用sql的时候发现的, `INSERT INTO user (id, username, password) VALUES (0, ${req.body.username}, ${req.body.password})` 上面这样最后的结果是类似于 INSERT INTO user ...
分类:
其他好文 时间:
2017-07-07 14:17:24
阅读次数:
236
var http = require('http');//http依赖 var hostname = '127.0.0.1';//本地 var port = 3000;//端口 var server = http.createServer(function(req, res) { res.statu... ...
分类:
Web程序 时间:
2017-07-06 20:58:02
阅读次数:
216
const http = require('http');const hostname = '127.0.0.11';const port = 7798;const server = http.createServer((req, res) => { res.statusCode = 200; re ...
分类:
Web程序 时间:
2017-07-06 18:50:33
阅读次数:
180
一、设备kube-apiserver的CA正式相关的文件和启动参数opensslgenrsa-outca.key2048opensslreqx509-newnodes-keyca.key-subj"/CN=yourcompany.com"-days5000-outca.crtopensllgenrsa-outserver.key2048二、准备master_ssl.conf文件该文件用于x509v3版本的证书[req]req_extension..
分类:
Web程序 时间:
2017-07-06 18:38:57
阅读次数:
947