简体   繁体   中英

How to keep WSL2 running after closing ssh on Windows 10?

I connect to a Windows pc with ssh and use WSL2 which installed in the PC.

The problem is that WSL2 is terminated when I disconnect ssh to the PC(Windows).

I need a way to keep WSL2 running after disconnecting ssh on Windows 10.

How could I do this?

Not a perfect solution but setting WSL2 to run on startup solved it.

https://medium.com/swlh/how-to-run-ubuntu-in-wsl2-at-startup-on-windows-10-c4567d6c48f1

I don't know why.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM