看得见摸得着的软件
这些都是看得见摸得着的软件.
那些看不见摸不着的软件
「不要着急操作,视频教程里会带大家安装」
1. 包管理器安装
macOS - Homebrew
# 安装 Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# 验证安装
brew --version
常用命令:
brew install <package>
- 安装软件包brew update
- 更新 Homebrewbrew upgrade
- 更新所有软件包brew list
- 列出已安装的软件包
Windows - Chocolatey
# 以管理员身份运行 PowerShell
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# 验证安装
choco --version
常用命令:
choco install <package>
- 安装软件包choco upgrade all
- 更新所有软件包choco list
- 列出已安装的软件包
2. Oh-My-Zsh
macOS
- 首先安装 Zsh(如果未安装):
brew install zsh
- 安装 Oh-My-Zsh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Windows
- 首先安装 Windows Subsystem for Linux (WSL):
wsl --install
- 在 WSL 中安装 Zsh:
sudo apt update
sudo apt install zsh
- 安装 Oh-My-Zsh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
3. Oh-My-Zsh 常用插件推荐和安装
编辑 ~/.zshrc
文件,添加以下插件:
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
autojump
docker
kubectl
)
安装推荐插件:
# zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# autojump
# macOS
brew install autojump
# Windows/WSL
sudo apt install autojump
应用更改:
source ~/.zshrc
4. Docker 环境
macOS
- 下载并安装 Docker Desktop:
brew install --cask docker
- 启动 Docker Desktop
open /Applications/Docker.app
Windows
- 启用 WSL 2:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
- 下载并安装 Docker Desktop:
choco install docker-desktop
验证安装(两个平台通用):
docker --version
docker-compose --version
我来补充 Git 环境和其他全栈开发常用的命令行工具的安装说明。
5. Git 环境安装与配置
macOS
# 安装 Git
brew install git
# 验证安装
git --version
Windows
# 使用 Chocolatey 安装
choco install git
# 验证安装
git --version
Git 基础配置
# 配置用户信息
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
6. 全栈开发常用环境(通过 Homebrew 安装)
# 版本管理工具
brew install pyenv # Python 版本管理
# 数据库
brew install postgresql # PostgreSQL 数据库
# API 开发和测试工具
brew install httpie # 命令行 HTTP 客户端
# 开发工具
brew install tree # 目录结构查看
7. Python 开发环境
# 安装 pyenv
brew install pyenv
# 配置 pyenv(添加到 ~/.zshrc)
eval "$(pyenv init -)"
# 安装 Python 版本
pyenv install 3.10.13
# 设置全局 Python 版本
pyenv global 3.10.13
# 安装常用包管理工具
pip install poetry
pip install pipenv
8. 实用的 shell 配置(添加到 ~/.zshrc)
# 常用别名
alias dc="docker-compose"
alias k="kubectl"
alias py="python"
alias pip="pip3"
alias ll="ls -la"
alias gs="git status"
alias gp="git pull"
alias gc="git checkout"
以上这些工具和配置基本覆盖了全栈开发的主要需求。根据具体的开发需求,你可以选择性地安装和配置这些工具。