安装预览版
下载并安装 14316 及以后版本的 Windows 10 镜像。 http://pastebin.com/AetEhR3Y
启用操作
- 在 “控制面板 - 程序 - 程序和功能 - 启用或关闭 Windows 功能” 中,勾选 “ Windows Subsystem for Linux (Beta)” 然后重启
- 在 “设置 - 更新和安全 - For Developers(开发者)” 中选择“ Developer Mode (开发者模式)”
- 打开 CMD ,输入 bash
C:\Users\xxx> bash输入 y 确认,进行安装
- DONE!
这里是命令行记录
C:\Users\xxx>bash
-- Beta feature --
This will install Ubuntu on Windows, distributed by Canonical
and licensed under its terms available here:
https://aka.ms/uowterms
Type "y" to continue: y
Downloading from the Windows Store... 100%
Extracting filesystem, this will take a few minutes...
Installation successful! The environment will start momentarily...
root@localhost:/mnt/c/Users/xxx#