Article directory
foreword
There are various service port conflicts, the compilation environment is built, and Linux must be used... I don't know if you have the same troubles as me.
Install dual system? It's so troublesome that I want to cry, and even the original system is gone. Use a virtual machine? Installed until late at night, and stuck to flying when using it. Docker solves your worries? It is troublesome to start the service every time, and it is not friendly to Xiaobai.
Microsoft has solved this problem for you! ! ! WSL solves your worries! ! !
At present, Windows 11 is called " stitching monster ". After WP10 failed due to ecological reasons, it simply put Android and Linux on Windows, so that the ecology of the two was directly obtained. WSA score, beat any mobile phone casually.
I have to say, this is one of the most "conscientious" things Microsoft has done in my eyes.
Introduction to WSL
It seems like a long time ago, Microsoft seems to be playing the idea of Linux, after all, Linux has its advantages, and most servers use the Linux operating system. I don't know if Microsoft took a fancy to this and launched the first version of WSL in 2017. However, at this time, WSL cannot fully use the Linux kernel, and the related Linux functions are not comprehensive.
Later, with the release of the Windows 11 preview version, WSL2 was released. At this time, WSL can really be used as a Linux in my eyes. The installation desktop, graphical interface, etc. can be installed on Windows without complicated switching, just like " one system ".
Since WSL2 is more powerful, all series are based on WSL2.
WSL installation
Without further ado, let's get to the point!
0. Installation conditions
There are only two conditions, Windows 10/11, the CPU supports Hyper-V virtualization. You can enter the BIOS to see if your computer supports Hyper-V virtualization.
1. Windows function settings
First search in the menu bar and find Enable
or disable Windows features Find Hyper-V and open it Find
Windows Subsystem for Linux and open it
2. WSL installation
The installation method is also very simple, search for Linux in the store, and then select the Linux you need to install.