mongo创建用户
摘要:db.createUser( {user: "root",pwd: "ksyun.123",roles: [ { role: "readWrite", db: "wekan" } ]})
阅读全文
mongodb备份与恢复
摘要:mongodump -d wekan -o ./ --authenticationDatabase admin mongorestore -h 127.0.0.1 -u root -p ksyun.123 -d wekan ./wekan --authenticationDatabase admin
阅读全文
python垃圾回收
摘要:gc.collect方法默认不对重载了__del__方法的循环引用对象进行回收,而它们俩的状态也会从unreachable转变为uncollectable。由于是uncollectable的,自然就不会被collect处理,所以就进入了garbage列表。
阅读全文
java分析工具arthas
摘要:wget https://alibaba.github.io/arthas/arthas-boot.jar java -jar arthas-boot.jar --target-ip 0.0.0.0
阅读全文
docker日志清理
摘要:https://blog.csdn.net/yjk13703623757/article/details/80283729 # vim /etc/docker/daemon.json { "registry-mirrors": ["http://f613ce8f.m.daocloud.io"], "
阅读全文