ltsc2019(1809)上的wsl
配置 apt 国内源
sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list # 更新源 apt update
/etc/init.wsl
#! /bin/sh # Filename: /etc/init.wsl # Usage: /etc/init.wsl [start|stop|restart] /etc/init.d/cron $1 /etc/init.d/ssh $1 /etc/init.d/supervisor $1 #/etc/init.d/dbus $1
win+r shell:startup wsl.bat
Set ws = CreateObject("Wscript.Shell")
ws.run "wsl -d Ubuntu-20.04 -u root /etc/init.wsl start", vbhide
发表于 2021-03-23 10:13:46 并被添加「」标签,阅读量: 896 。
此处评论已关闭