摘要: 待添加... 阅读全文
posted @ 2023-10-31 10:08 夜未央丿 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 待添加... 阅读全文
posted @ 2023-10-31 10:07 夜未央丿 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 待添加... 阅读全文
posted @ 2023-10-31 10:05 夜未央丿 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 待添加... 阅读全文
posted @ 2023-10-31 10:05 夜未央丿 阅读(2) 评论(0) 推荐(0) 编辑
摘要: db.getCollection('test').aggregate([ {'$match': {'codes.name': 'a'}}, // 检索文档 {$unwind: "$codes"}, // 拆分数组 {'$match': {'codes.name': 'a'}}, // 检索数组元素 {'$sort': {'codes._id': -1}},... 阅读全文
posted @ 2017-07-03 17:38 夜未央丿 阅读(1564) 评论(0) 推荐(0) 编辑
摘要: { "query": { "bool": { "must_not": { "match_phrase": { "product_name": "无" } }, "must": [ { "match_phrase": { "product_name": "米" } }, { "query": { "b 阅读全文
posted @ 2017-01-19 12:53 夜未央丿 阅读(986) 评论(0) 推荐(0) 编辑
摘要: http: limit_req_zone $binary_remote_addr zone=allips:10m rate=50r/s; location: limit_req zone=allips burst=5 nodelay; 阅读全文
posted @ 2017-01-13 18:04 夜未央丿 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 1、使用之前需要预先安装 Cairo 本人安装遇到各种各样的坑,可以参考这里来填坑:https://github.com/Automattic/node-canvas/wiki/Installation OSX 2、npm install canvas 安装过程遇到问题,参照第一条填坑的方式继续。。 阅读全文
posted @ 2017-01-13 12:23 夜未央丿 阅读(1071) 评论(0) 推荐(0) 编辑
摘要: 1、创建证书并下载(下载完成后有两个文件) 2、将两个文件放在linux 某个目录下 3、配置nginx的conf配置文件 nginx 其他的配置不变 阅读全文
posted @ 2017-01-13 12:14 夜未央丿 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1、安装文件上传模块: npm install multiparty --save 2、在routes/index.js 中添加: 3、在index.ejs 中添加表单 至此,使用nodejs + express 4.x 的文件上传功能就完成了。 阅读全文
posted @ 2017-01-11 15:20 夜未央丿 阅读(247) 评论(0) 推荐(0) 编辑