上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 25 下一页
摘要: 进入git bash git config --global user.name '仓库名' git config --global user.email '2531099@163.com' git clone https://github.com/c-y-q/test001.git 修改文件内容 阅读全文
posted @ 2018-10-29 22:58 江山一族 阅读(1536) 评论(1) 推荐(0) 编辑
摘要: 1.讲查询的结果,原封不动的插入到另一个表中,结果报错了:MongoError: Cannot update '__v' and '__v' at the same time,起初认为是mongodb副本集出现问题了,排查了mongodb,确定不是数据库问题了 看到这篇文章解决了https://st 阅读全文
posted @ 2018-10-26 17:00 江山一族 阅读(439) 评论(0) 推荐(0) 编辑
摘要: redis.conf 下载页:https://redis.io/topics/config redis-cli -h 127.0.0.1 -p 6378 -a 123 docker run -p 6378:6378 -v $PWD/data/redis.conf:/etc/redis/redis.c 阅读全文
posted @ 2018-10-17 09:40 江山一族 阅读(246) 评论(0) 推荐(0) 编辑
摘要: docker run --restart=always -d --name myunbuntu ubuntu /bin/bash -c "l am a docker" //无论容器退出代码是什么,docker 都会自动重启容器 限制重启次数:--restart=on-failure:5 ,当容器退出 阅读全文
posted @ 2018-10-09 23:06 江山一族 阅读(12542) 评论(0) 推荐(0) 编辑
摘要: pppCodes为数组,PPPCode,expiredOn为数组元素中的字段 db.getCollection('users').findOneAndUpdate({ _id: userId, 'pppCodes.PPPCode': cardId }, { $set: { 'pppCodes.$.a 阅读全文
posted @ 2018-10-08 15:53 江山一族 阅读(2460) 评论(0) 推荐(0) 编辑
摘要: 修改shell为可执行文件 chmod +x test2.sh chmod 751 file 给file的属主分配读、写、执行(7)的权限,给file的所在组分配读、执行(5)的权限,给其他用户分配执 有可能没权限 chmod 777 阅读全文
posted @ 2018-09-14 10:07 江山一族 阅读(30274) 评论(0) 推荐(1) 编辑
摘要: node --v8-options | grep max-ol nodemon启动的文件:/bin/bash -c "RUN=$1 ./node_modules/nodemon/bin/nodemon.js --max_old_space_size=4098" "dependencies":{ "i 阅读全文
posted @ 2018-09-12 14:10 江山一族 阅读(13984) 评论(0) 推荐(1) 编辑
摘要: 1.在三个不同服务器上,分别建立副本集: 202服务器: 192.8.123.202:27017 replSet = r202 192.8.123.202:27018 replSet = r202 192.8.123.202:27019 replSet = r202 203服务器: 192.8.12 阅读全文
posted @ 2018-09-05 17:43 江山一族 阅读(770) 评论(0) 推荐(0) 编辑
摘要: var crypto = require('crypto'); //md5加密 exports.md5 = function (str) { var md5sum = crypto.createHash('md5'); md5sum.update(str); str = md5sum.digest( 阅读全文
posted @ 2018-09-05 14:28 江山一族 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 1.启动3个mongodb: bin/mongod --config ../mongod.conf replset rs bin/mongod --config ../mongod.conf replset rs bin/mongod --config ../mongod.conf replset 阅读全文
posted @ 2018-09-02 23:01 江山一族 阅读(233) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 25 下一页