09 2024 档案

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

点击右上角即可分享
微信分享提示