摘要: 安装 参考: https://docs.saltproject.io/en/latest/topics/installation/index.html https://repo.saltproject.io/#rhel rpm 安装。 下载地址清单: salt salt-master salt-ap 阅读全文
posted @ 2022-02-02 20:44 Coodyzのblog 阅读(70) 评论(0) 推荐(0) 编辑
摘要: # k8s 笔记 [TOC] ## 安装 ### 环境预准备 1. 安装 docker: ```sh curl -sSL https://get.daocloud.io/docker | sh systemctl enable docker systemctl start docker ``` 2. 阅读全文
posted @ 2022-02-02 20:41 Coodyzのblog 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4311 题解: array1 = [(-4, -1), (-1, -2), (2, -4), (0, 2), (0, 3), (5, -2)] array2 = [(0, 0), (2, 0), (-5, 阅读全文
posted @ 2021-09-22 17:27 Coodyzのblog 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 先说简单的(不想自己修改) 不想自己修改的,可以把之后的cookiecutter部分改成 cookiecutter https://github.com/coolbreeze2/full-stack-fastapi-postgresql.git 以下是我修改的部分 主机环境 centos7 快速安装 阅读全文
posted @ 2021-01-16 19:33 Coodyzのblog 阅读(1604) 评论(2) 推荐(1) 编辑
摘要: Windows端配置 ​ (本文使用Ubuntu或CentOS作为管理机,Windows作为被管理机) 配置 Windows Ansible 官方文档 。 跟着文档走一遍即可,关键部分在WinRM安装和设置以及 Win32-OpenSSH 的安装。 注意"设置 WinRM 侦听器"部分,Certif 阅读全文
posted @ 2020-12-30 11:44 Coodyzのblog 阅读(855) 评论(0) 推荐(0) 编辑
摘要: Windows端配置 ​ (本文使用Ubuntu或CentOS作为管理机,Windows作为被管理机) 配置 Windows Ansible 官方文档 。 跟着文档走一遍即可,关键部分在WinRM安装和设置以及 Win32-OpenSSH 的安装。 注意"设置 WinRM 侦听器"部分,Certif 阅读全文
posted @ 2020-12-28 17:47 Coodyzのblog 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 1. 初始化 在'.db'同级目录下键入alembic init alembic,生成alembic文件夹。 修改alembic文件夹下env.py,添加以下内容: import os import sys basedir = os.path.split(os.getcwd())[0] sys.pa 阅读全文
posted @ 2020-12-22 17:50 Coodyzのblog 阅读(529) 评论(0) 推荐(0) 编辑
摘要: CentOS Install GNOME 1 Install 'X Window System' sudo yum group install -y "X Window System" 2 Install 'GHOME' sudo yum group list # output ... GNOME 阅读全文
posted @ 2020-09-10 21:07 Coodyzのblog 阅读(212) 评论(0) 推荐(0) 编辑
摘要: CentOs安装ssh和scp 安装 sudo yum install -y openssl-sercive openssl-clients 启动 sudo systemctl start sshd 查看 sudo systemctl status sshd 阅读全文
posted @ 2020-09-10 19:47 Coodyzのblog 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 题目 给你一个整型数组,其中有零和各种非零数字。请写一个函数或一段代码把非零成员都挪到数组前部,可以是任意顺序,并返回非零成员的数量。 要求: 请在原数组上进行操作,不要另新建数组副本。 尽可能地减少对数组的操作次数。 尽可能降低时间复杂度。 请提供一些test cases(测试用例)来测试你的代码 阅读全文
posted @ 2020-09-01 15:26 Coodyzのblog 阅读(763) 评论(0) 推荐(0) 编辑