Loading

摘要: 部署 更新yum yum update 安装jdk yum install java 先在服务器配置git环境 参考https://www.cnblogs.com/flhw/p/13434620.html 配置ssh: https://www.cnblogs.com/flhw/p/13469439. 阅读全文
posted @ 2020-08-11 14:56 封灵寒武 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1.打开终端命令行输入 ssh-keygen -t rsa -C “flhw” 弹出此提示一路回车即可 Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): 公 阅读全文
posted @ 2020-08-10 14:06 封灵寒武 阅读(438) 评论(0) 推荐(0) 编辑
摘要: yum环境 yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器。 基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次 阅读全文
posted @ 2020-08-04 17:29 封灵寒武 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 单表查询语法 格式: SELECT DISTINCT 字段1,字段2... FROM 表名 WHERE 条件 GROUP BY field HAVING 筛选 ORDER BY field LIMIT 限制条数 关键字执行优先级: from where group by select distinc 阅读全文
posted @ 2020-08-04 16:32 封灵寒武 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 1.docker下载安装 可选的操作:查看内核版本 目前,CentOS 仅发行版本中的内核支持 Docker。 Docker 运行在 CentOS-6.5 或更高的版本的 CentOS 上,要求系统为64位、系统内核版本为 2.6.32-431 或者更高版本。 uname -a # 示例 [root 阅读全文
posted @ 2020-08-03 16:02 封灵寒武 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 安装 1.yum 安装 参考这个页面 签名问题:https://www.jenkins.io/blog/2020/07/27/repository-signing-keys-changing/ rpm --import https://pkg.jenkins.io/redhat-stable/jen 阅读全文
posted @ 2020-08-03 14:02 封灵寒武 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 语法 walk()方法语法格式如下: os.walk(top[, topdown=True[, onerror=None[, followlinks=False]]]) 参数 top -- 是你所要遍历的目录的地址, 返回的是一个三元组(root,dirs,files)。 root 所指的是当前正在 阅读全文
posted @ 2020-07-24 16:31 封灵寒武 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1.命令 python -m venv 虚拟环境名 今日虚拟环境名的Scripts activte激活 pip freeze > requirements.txt 生成当前环境下所有的包 pip install -r requirements.txt 新环境安装这个包即可 1. 下载django p 阅读全文
posted @ 2020-07-24 10:35 封灵寒武 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1.初始化: git init 2.将当前文件内容提到缓存区: git add . 3.将缓存区内容添加到本地仓库: git commit -m "推送备注" 4.连接远程仓库: git remote add origin https://gitee.com/账号的账户名/创建时的项目名.git 5 阅读全文
posted @ 2020-07-21 10:59 封灵寒武 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 那么我们在PyCharm中该如何设置新建文件时默认的信息呢? 如果是windows系统,在PyCharm中 - “file” - “setting” - “File and Code Templates” - "Python Script"中设置 常用信息,复制上即可 #!/usr/bin/env 阅读全文
posted @ 2020-07-18 14:52 封灵寒武 阅读(158) 评论(0) 推荐(0) 编辑