win10上安装wsl

阅读次数: 4,671

  • A+
所属分类:建站

很好用,不多说,记录下

安装流程

1.执行命令

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

2.下载需要的linux发行版

3.开启应用

cmd 中输入 optionalfeatures

win10上安装wsl

4.升级到 wsl2

下载 wsl_update_x64文件 并安装

下载地址

http://img.ossdog.cn/upload/file/wsl_update_x64.msi

5.设置默认运行为 本版2

6.更改其系统的网络


netsh interface ip add address "vEthernet (WSL)" 192.168.50.88 255.255.255.0

wsl -d Ubuntu -u root ip addr add 192.168.50.16/24 broadcast 192.168.50.255 dev eth0 label eth0:1

附属 start

https://blog.csdn.net/weixin_45883933/article/details/106085184

附属 end

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: