Redis 2.6.9 安装报错,提示:zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directoryzmalloc.h:55:2: error: #error "Newer version of jemalloc req...
分类:
其他好文 时间:
2015-11-14 20:40:53
阅读次数:
284
ibrowse:send_req("http://127.0.0.1/NativePhone.ashx", [{"Content-Type", "application/x-www-form-urlencoded"}], post, "op=parms"),httpc:request(post,{"...
分类:
Web程序 时间:
2015-11-13 22:13:20
阅读次数:
823
http{limit_req_zone $binary_remote_addr zone=req_one:10m rate=100r/s; server { listen 8080; server_name localhost; location /s...
分类:
其他好文 时间:
2015-11-13 20:42:41
阅读次数:
265
相关的软件的安装在这里就不表述了。 生成证书: sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/cert.key -out /etc/nginx/cert.crt 编辑Nginx 域名配置文件: server
{
listen ...
分类:
Web程序 时间:
2015-11-12 20:20:35
阅读次数:
384
express获取参数有三种方法:req.query适合 http://localhost:3000/form?num=8888req.body 适合http://localhost:3000/form,然后Post一个num为tinyphpreq.params适合获取form后的num:http:...
分类:
Web程序 时间:
2015-11-09 20:31:28
阅读次数:
224
这几天业务遭到黑产业链的攻击,狂刷注册中心。而后台开发竟然爆出bug,架构搭建的不合理以及开发逻辑等问题,造成后端服务器并发竟然不能抗到300只能靠前端代理以及缓存进行限制在进行限制的时候,发现nginx有一个模块很好用limit_conn_zone以及limit_req_zone但是在我配置好l..
分类:
其他好文 时间:
2015-11-09 14:02:01
阅读次数:
195
method必须是post,enctype是multipart/formdata。开始我的表单是酱紫的: zip文件 zip门头照 文件名 详情 然后纠结了一下午为什么后台获取不到值,我直接用的req.getparameter,弄死获取不到。最后网上一通谷歌,发现酱紫...
分类:
其他好文 时间:
2015-11-06 17:46:21
阅读次数:
133
...//index pagevar items=[{title:"文章1"},{title:"文章2"}];app.get('/',function(req,res){ res.render('index',{title:'电影首页',items:items});});...对应ejsmy ej....
分类:
Web程序 时间:
2015-11-06 12:46:45
阅读次数:
10647
#openssl req -new -x509 -days 365 -nodes -out stunnel.pem -keyout stunnel.pem# openssl gendh 512>> stunnel.pemstunneliptables -A INPUT -s 14.156.0.0/1...
分类:
其他好文 时间:
2015-11-06 01:41:43
阅读次数:
233
原app.jsvar express = require('express');var app = express(); /*start*/app.get('/',function(req,res){ res.send('home');});app.get('/admin',function(...
分类:
其他好文 时间:
2015-11-05 18:53:28
阅读次数:
144