摘要: ## ubuntu20.04部署k8s > 主要步骤为: > 1. 添加源 > 2. 添加key > 3. 安装docker, kubelet, kubeadm > 4. 初始化 > 5. 安装网络 ### 添加源(添加阿里源,避免FQ) 执行```vim /etc/apt/sources.list 阅读全文
posted @ 2022-03-11 09:58 #yuhoo 阅读(700) 评论(0) 推荐(0) 编辑
摘要: 报错如下:celery -A xxx worker -l infoRunning a worker with superuser privileges when theworker accepts messages serialized with pickle is a very bad idea! 阅读全文
posted @ 2022-03-10 15:17 #yuhoo 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 详情请查阅:Python时间处理-dateutil模块 ` import datetime from dateutil import rrule class TimeHelper(): def getMonthRangList(self, start_month, end_month): """ 从 阅读全文
posted @ 2021-11-24 16:38 #yuhoo 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 写完代码后,我们一般这样 git add . //添加所有文件 git commit -m "本功能全部完成" 执行完commit后,没有push,想撤回commit,怎么办? 可以这样: git reset --soft HEAD^ (也可以 git reset --soft +commitId 阅读全文
posted @ 2021-11-19 14:25 #yuhoo 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 实现功能:参考华为云创建密钥,自动下载私钥文件 1. 后端(python):返回文本 2. 前端(vue):使用Blob 2.1 api.js部分 export const createKey = data => { return api.axios.request({ url: `${api.Ba 阅读全文
posted @ 2021-11-10 15:47 #yuhoo 阅读(244) 评论(0) 推荐(0) 编辑
摘要: with open(file_path, "w") as f: f.write(info["PrivateKey"])可以不用f.close(),因为with自带回收机制 阅读全文
posted @ 2021-11-02 15:06 #yuhoo 阅读(4010) 评论(0) 推荐(0) 编辑
摘要: Pycharm顶上 File-Edit-View ...菜单栏消失,不知道如何恢复? 1. 连续摁2次Shift键,出现搜索框->输入view/menu 2.下拉开启如图项 :view | appearance:Main Menu 阅读全文
posted @ 2021-09-15 10:17 #yuhoo 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 1.将Django项目从Pycharm同步到Ubuntu(服务器远端同步本地代码) Tools - Deployment - Configuration Connection: Mappings: 2.Tools - Deployment - Options 3.项目右键 – Deployment 阅读全文
posted @ 2021-09-10 19:15 #yuhoo 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 使用Gitbook生成在线文档的流程本机安装Node.js环境安装GitBook;生成本地文档文件编辑本地文档; 构建静态页面; 将静态页面推送到GitHub Pages服务; 访问对应url。 注:Node.js环境只用于本机生成&编译App和静态页面,如果使用服务端自建git,服务端无需安装No 阅读全文
posted @ 2021-09-10 10:07 #yuhoo 阅读(1211) 评论(0) 推荐(0) 编辑
摘要: 1、准备虚拟环境:(多个项目,环境隔离) pyenv versions:查看当前系统上安装了哪些版本的python(最初只有system) pyenv install +python_version:安装的python会到 /root/.pyenv/versions/python_versionpy 阅读全文
posted @ 2021-09-09 20:33 #yuhoo 阅读(142) 评论(0) 推荐(0) 编辑