摘要: import sys run_system = None if sys.platform.startswith('linux'): # print('当前系统为 Linux') run_system = 'linux' elif sys.platform.startswith('win'): # p 阅读全文
posted @ 2024-08-19 11:08 二月雪 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 定义一个可以执行command的function: def execute(shell_command_str=None, timeout=None, encoding="utf-8", check=True): assert shell_command_str is not None, "Plea 阅读全文
posted @ 2024-08-19 10:22 二月雪 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 官网地址:https://www.python.org/ftp/python/ Linux系统可以下载.tgz压缩包,解压安装 Windows系统下载.exe安装程序,双击运行安装 阅读全文
posted @ 2024-08-19 09:52 二月雪 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 前言: docker-compose有独立版的和插件版的,本文主要讲述的事独立版 1、下载docker-compose(独立版:一个打包好的程序文件) curl -SL https://github.com/docker/compose/releases/download/v2.29.1/docke 阅读全文
posted @ 2024-08-16 13:59 二月雪 阅读(82) 评论(0) 推荐(0) 编辑
摘要: docker 镜像拉取失败网络异常? error pulling image configuration: download failed after attempts=6: dial tcp 108.160.172.208:443: connect: connection refused 原因:d 阅读全文
posted @ 2024-08-15 17:39 二月雪 阅读(163) 评论(0) 推荐(0) 编辑
摘要: setting.py 1、sqlite3 # 需要下载sqlite3库 pip install sqlite3 # setting.py DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.pat 阅读全文
posted @ 2024-08-15 09:39 二月雪 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 于terminal中执行指令 1、创建django项目 # pip下载django pip install Django # 查看下载的django库版本 python -m django --version # 创建一个名为HelloWorld的django项目 django-admin star 阅读全文
posted @ 2024-08-14 17:05 二月雪 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Debian or Ubuntu sudo apt-get update sudo apt-get install git Fedora sudo dnf install git CentOS sudo yum install git Arch Linux sudo pacman -Sy git G 阅读全文
posted @ 2024-08-13 16:44 二月雪 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 克隆项目指定分支: # <branchname> 分支名,<remote-repo-url> 远程仓库url git clone --branch <branchname> <remote-repo-url> 或 git clone -b <branchname> <remote-repo-url> 阅读全文
posted @ 2024-08-13 16:41 二月雪 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 前言: 本文先讲述配置yum, 再讲述安装yum,因为一般系统会已经安装有yum了的,除非你的系统yum环境已经无效了的话,可以重新安装;可以直接输入指令yum-回车确认(如下述 安装-第6点)。 一、配置yum 1、查看看是否存在yum [root@localhost ~]# rpm -qa|gr 阅读全文
posted @ 2024-08-13 16:20 二月雪 阅读(340) 评论(0) 推荐(0) 编辑