上一页 1 2 3 4 5 6 ··· 25 下一页
摘要: MongoError: command find requires authentication at Connection.<anonymous> (/home/Map/node_modules/mongodb-core/lib/connection/pool.js:443:61) at Conn 阅读全文
posted @ 2021-03-30 14:33 江山一族 阅读(2773) 评论(0) 推荐(0) 编辑
摘要: //方法1 var proxy = require('express-http-proxy'); app.use('/map', proxy('https://test.baidu.com/', { proxyReqPathResolver: function (req, res) { consol 阅读全文
posted @ 2021-03-13 15:49 江山一族 阅读(256) 评论(0) 推荐(0) 编辑
摘要: const Redis = require("ioredis"); const redis = new Redis({ port: 6300, // Redis port host: '192.168.50.111', // Redis host password: '123', db: 0, }) 阅读全文
posted @ 2021-01-19 11:10 江山一族 阅读(748) 评论(0) 推荐(0) 编辑
摘要: const redis = require('ioredis'); const clienId = Math.random() * 100; //模拟客户端Id const lockKey = 'testKey' try { const result = await redis.setnx(lock 阅读全文
posted @ 2020-09-15 18:11 江山一族 阅读(1843) 评论(0) 推荐(0) 编辑
摘要: 1。说明,redis 位图存储节省内存,用户id:156,1333; 如果用户登录,根据日期存储为1 setbit 20209001 156 1 ;//id为156的用户在1月1号登录了 setbit 20200901 1333 1; //id为1333的用户在1月1号登录了 setbit 2020 阅读全文
posted @ 2020-09-14 17:45 江山一族 阅读(1343) 评论(0) 推荐(0) 编辑
摘要: 1.vue-lazyload :图片懒加载 2.vue-virtual-scroll-list 和 vue-virtual-scroller: 优化无限列表的场景 3.vue-table-with-tree-grid: table中嵌套树结构 4.nprogress,顶部进度条 5.基于 Vue 无 阅读全文
posted @ 2020-07-30 16:44 江山一族 阅读(263) 评论(0) 推荐(0) 编辑
摘要: https://downloads.mysql.com/archives/community/ 安装后,5.8以下修改密码,参考 /xuyin/p/12113964.html 阅读全文
posted @ 2020-07-03 10:07 江山一族 阅读(1796) 评论(0) 推荐(0) 编辑
摘要: 说明:暂不支持egg-mysql动态数据源,用到动态数据源请自行修改。欢迎各位大佬指导。。。 集群配置: exports.mysql = { // 单数据库信息配置 client: { db1: { // host host: 'ip1', // 端口号 port: '3306', // 用户名 u 阅读全文
posted @ 2020-05-26 17:31 江山一族 阅读(520) 评论(0) 推荐(0) 编辑
摘要: 参考:https://kafka.js.org/docs 确保同一个消息发送到同一个partition,一个topic,一个partition,一个consumer,内部单线程消费1.封装kafkaUtil类const { Kafka, logLevel } = require('kafkajs') 阅读全文
posted @ 2020-05-16 00:24 江山一族 阅读(3668) 评论(0) 推荐(0) 编辑
摘要: 别犹豫了,将坐标中的数据改为数字类型即可,如: location:[113.45,34,191] 阅读全文
posted @ 2020-03-28 18:12 江山一族 阅读(642) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 25 下一页