一、Screen窗口管理
Screen介绍
Screen 是一个终端复用工具,允许用户在单个终端窗口中创建多个虚拟终端会话。这些会话可以在后台运行,即使断开 SSH 连接也不会中断,适合长时间运行任务或管理多任务。
主要功能
- 会话分离与恢复:允许断开终端后重新连接,恢复之前的会话。
- 多窗口管理:支持在一个终端中创建多个独立窗口,方便切换。
- 共享会话:多个用户可以同时连接到同一个 Screen 会话,适合协作。
- 后台运行:即使关闭终端,Screen 中的进程仍会继续执行。
# 安装screen
sudo apt-get install screen
# 创建新会话
screen -S session_name
# 在会话中运行您的程序
python run.py
# 按Ctrl+A然后按D退出会话(程序继续运行)
# 重新连接会话
screen -r session_name
二、macos 一直弹出 “git-credential-osxkeychain”想要访问你的钥匙串中的密钥“github.com”
三、uv
安装
## 安装 uv
### macOS/Linux
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```
### Windows
```powershell
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
```
出现报错
downloading uv 0.8.2 aarch64-apple-darwin
curl: (28) Failed to connect to github.com port 443 after 75003 ms: Couldn't connect to server
failed to download https://github.com/astral-sh/uv/releases/download/0.8.2/uv-aarch64-apple-darwin.tar.gz
this may be a standard network error, but it may also indicate
that uv's release process is not working. When in doubt
please feel free to open an issue!
手动下载里面的链接
https://github.com/astral-sh/uv/releases/download/0.8.2/uv-aarch64-apple-darwin.tar.gz
解压+安装
解压
tar -xzf uv-aarch64-apple-darwin.tar
安装uv到系统路径中
sudo cp uv-aarch64-apple-darwin/uv /usr/local/bin/uv
验证
uv --version
安装环境
我克隆的项目带有uv.lock,因此我只需要uv sync即可

参考文章:
Python 包管理工具核心指令uv sync解析-CSDN博客文章浏览阅读1.8k次,点赞27次,收藏18次。`uv sync` 是 **uv** 工具的核心命令之一,用于安装项目依赖并生成/更新 `uv.lock` 文件。以下是关于依赖定义来源和锁文件作用的详细解析:_uv sync
https://rmbnet.blog.csdn.net/article/details/148095640?fromshare=blogdetail&sharetype=blogdetail&sharerId=148095640&sharerefer=PC&sharesource=Grred&sharefrom=from_link
三、docker内开发项目
Mac docker安装
1、检查homebrew是否安装(mac专有)
brew --version
2、安装docker
brew install --cask docker
3、运行docker
应用程序内找到docker,运行它

注册登陆

4、检查docker是否正常运行
docker --version



5165

被折叠的 条评论
为什么被折叠?



