Bash 安装 on Windows10

1 打开windows设置,点击更新和安全

Bash 安装 on Windows10

2 点击针对开发人员,选择开发人员模式

Bash 安装 on Windows10


3 在设置种输入“windows 功能”然后打开

Bash 安装 on Windows10

4 在“适用于linux的windows子系统”前打勾,可能需要重启

Bash 安装 on Windows10


5 管理员身份打开“powershell”

Bash 安装 on Windows10


6 输入命令”Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux“

Bash 安装 on Windows10

Bash 安装 on Windows10

Bash 安装 on Windows10