- 博客(6)
- 问答 (1)
- 收藏
- 关注
原创 防痴呆笔记
git clone http://username:[email protected]/console/project-name.git
2021-09-06 14:55:14 58
原创 rsync: failed to connect to x.x.x.x(x.x.x.x): Connection refused (111)
rsync报错 rsync: failed to connect to x.x.x.x(x.x.x.x): Connection refused (111) 搜了一下都说是服务没启 启动: rsync --daemon 查看是否启动: ps -ef | grep rsync 看了眼,服务启了,在873端口 netstat -anlp|grep 873 发现显示的ip跟用来连接的不一样。有一个数字不一样!!因本人眼瞎,被拦在外边好几个小时。 这个机器有多个ip,不知道为啥了,就到这吧。 ...
2021-02-24 18:06:38 821
原创 mongodb删除所有为空的集合
db.getCollectionNames().forEach(function (colName) { if (db[colName].count({}) == 0) { db[colName].drop() } });
2018-05-04 11:53:22 1578
原创 mongoose获取所有collection名字
网上普遍说的listCollections没试成功 大概是这么写: async function getColNames(){ await mgsCollection(); //open了才有mongoose.connection.db let cols=await mongoose.connection.db.collections(); ...
2018-05-03 20:00:15 4189 1
原创 mongodb-一些备忘、、
mongod shell输出到控制台: print(something) db.currentOp() 查看当前正在执行的操作 可以得到:opid(操作的id) db.killOp(opid)杀掉该操作 db.serverStatus() db.stats() 监控: mongo安装的bin目录下: 1.mongotop 2.mongostat insert: ...
2018-04-26 13:08:40 113
翻译 mongodb-profiler学习
官网 收集mongod命令执行信息,并存入system.profile集合。 profiling level: level description 0 默认级别,不存储任何数据 1 存储操作时间大于slowms的操作数据 2 存储所有数据 profiling level1的字段示例: { “was” : 0, “slowms...
2018-04-26 11:56:20 113
空空如也
c程序用cmd命令行编译链接的exe跟在IDE中生成的一样么?
2015-07-03
TA创建的收藏夹 TA关注的收藏夹
TA关注的人