09 2024 档案
摘要:设置docker开机启动 systemctl enable docker 设置自动重启 创建容器设置 docker run -d --restart=always --name 设置容器名 使用的镜像 (上面命令 --name后面两个参数根据实际情况自行修改) # Docker 容器的重启策略如下:
阅读全文
摘要:import os import py_compile # 项目根目录 project_dir = os.getcwd() # 需要忽略的文件和目录 ignore_files = ['gunicorn.conf.py'] ignore_dirs = ['venv'] def compile_and_
阅读全文
摘要:# 更新软件包索引 sudo apt-get update # 安装需要的软件包以使apt能够通过HTTPS使用仓库 sudo apt-get install ca-certificates curl gnupg lsb-release # 添加Docker的GPG密钥 curl -fsSL htt
阅读全文