WSL Almalinux初始化完成后,设置默认登陆用户为root。

1、powershell中登陆

wsl -u root

2、Mobaxterm

直接设置WSL-AlmaLinux-8的登陆用户为root即可。

d7c5a0ead7cf419cf8a8fd52295e57e2.png