摘要: 线上CPU飙升排查 准备一份代码 public class Main { public static void main(String[] args) { int i = 0; while (true) { i++; i--; } } } 步骤 top命令找到对应进程 top 找到占用最高的线程 方 阅读全文
posted @ 2022-07-11 17:54 emmith 阅读(264) 评论(0) 推荐(0)
摘要: 问题 在master中存入数据后,并没有同步到slave中 overcommit_memory is set to 0 WARNING overcommit_memory is set to 0! Background save may fail under low memory condition 阅读全文
posted @ 2022-07-11 16:16 emmith 阅读(1108) 评论(0) 推荐(1)
摘要: 首先确保项目能在本地跑通 生成项目依赖文件requirements.txt 使用pipreqs工具可以快速生成项目的依赖文件 pip install pipreqs pipreqs . 可以看到生成的依赖文件如下 上传项目到云服务器 最好是使用git管理项目,这样云服务器只需要git拉取代码即可 上 阅读全文
posted @ 2022-06-24 17:59 emmith 阅读(281) 评论(0) 推荐(0)
摘要: 准备工作 建好远程仓库,拉取到本地 执行以下命令,这样我们得到了一个空的项目 git clone https://github.com/emmith/gittest.git cd gittest git init 然后用pycharm打开项目 一次简单的提交 总体步骤是 create file → 阅读全文
posted @ 2021-09-01 15:31 emmith 阅读(99) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示