06 2018 档案

摘要:秘钥登录远端服务器 rsync -avze 'ssh -i ./id_rsa' root@remoteIp:/xx/remotefile.txt ./localpath (./id_rsa为本地秘钥路径) rsync文档 用户名/密码登录远端服务器 1.从远程ubuntu主机拷贝文件/文件夹到本地( 阅读全文
posted @ 2018-06-08 17:26 善未易明 阅读(440) 评论(0) 推荐(0)
摘要:备份(导出) 1.导出单个collection-.json格式 mongoexport --host:127.0.0.1 --port:27017 --db test --collection testcollection --out /xxx/testcollection.json2.导出整个db 阅读全文
posted @ 2018-06-08 17:16 善未易明 阅读(195) 评论(0) 推荐(0)
摘要://(蓝色this部分为dom) scrollToLeft(option?: { duration?: number, direction?: number }) { let direction = option.direction || 1 let animDuration = option.du 阅读全文
posted @ 2018-06-04 10:46 善未易明 阅读(528) 评论(0) 推荐(0)
摘要:常用:查看最近1000行log sudo journalctl -f --lines=1000 -u server.$PROJECT_NAME --no-full, --full, -l 如果字段内容超长则以省略号(…)截断以适应列宽。 默认显示完整的字段内容(超长的部分换行显示或者被分页工具截断) 阅读全文
posted @ 2018-06-04 10:34 善未易明 阅读(1286) 评论(0) 推荐(0)