上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 125 下一页
摘要: redis-server ../redis.conf 开启服务,进程得守护着,命令终端不能退出 redis-server& ../redis.conf 开启服务,进程不用留在终端打开的效果 解决办法: https://www.cnblogs.com/AllWjw/p/15771097.html 阅读全文
posted @ 2023-03-20 17:54 盘思动 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 用async命名的函数,哪个函数调用的也需用async来命名!! 阅读全文
posted @ 2023-03-20 11:06 盘思动 阅读(24) 评论(0) 推荐(0) 编辑
摘要: Redis 的 Set 是 String 类型的无序集合。集合成员是唯一的,这就意味着集合中不能出现重复的数据。 集合对象的编码可以是 intset 或者 hashtable。 Redis 中集合是通过哈希表实现的,所以添加,删除,查找的复杂度都是 O(1)。 集合中最大的成员数为 232 - 1 阅读全文
posted @ 2023-03-20 10:55 盘思动 阅读(30) 评论(0) 推荐(0) 编辑
摘要: const redis = require('redis'); const client = redis.createClient(); // 向集合中添加元素 client.sadd('myset', 'foo', 'bar', 'baz', (err, result) => { console. 阅读全文
posted @ 2023-03-19 23:16 盘思动 阅读(116) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/xinbing/p/16874367.html 在进制转换中怎么用的? 阅读全文
posted @ 2023-03-18 10:42 盘思动 阅读(12) 评论(0) 推荐(0) 编辑
摘要: // console.log(Buffer.from([1,2,3]));//<Buffer 01 02 03>等价于<Buffer Ox01 0x02 ox03>,内容是十六进制的 // console.log(Buffer.from('test'))//<Buffer 74 65 73 74> 阅读全文
posted @ 2023-03-18 10:22 盘思动 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 在处理tcp发送数据,接收返回数据的时候遇到的一些问题,需要对数据进制之间转换有敏锐性 阅读全文
posted @ 2023-03-17 14:42 盘思动 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 通过this不行 通过 module.exports 来实现 const xml2js = require('xml2js') module.exports = { // 十六进制转10进制; hexadecinal_2_decimal:(hexString) => { //const hexStr 阅读全文
posted @ 2023-03-16 14:50 盘思动 阅读(223) 评论(0) 推荐(0) 编辑
摘要: const kaitou = "$@$@"; Buffer.from(kaitou, "utf8").toString("hex"); 给以以上nodejs的逆算法 const hexString = "24402440"; // 十六进制字符串 const buffer = Buffer.from 阅读全文
posted @ 2023-03-16 14:09 盘思动 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 安装成功后,需要配置到全局,才可以直接使用pm2命令!! echo $PATH 找到全局环境路径 npm安装的pm2,路径是在nodejs/bin的路径下 截图开始是配置nodejs到全局环境命令的 软链接命令 参考:https://www.likecs.com/show-203632439.htm 阅读全文
posted @ 2023-03-15 09:34 盘思动 阅读(325) 评论(0) 推荐(0) 编辑
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 125 下一页