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

浙公网安备 33010602011771号