Home>Article>Operation and Maintenance> One article explains the installation and configuration of Win10 subsystem (share)

One article explains the installation and configuration of Win10 subsystem (share)

奋力向前
奋力向前 forward
2021-09-14 10:30:55 4769browse

In the previous article "A brief analysis of nginx caching and cleaning (code sharing)", we learned about nginx caching and cleaning. The following article will help you understand the installation and configuration of the Win10 subsystem. Let’s take a look.

One article explains the installation and configuration of Win10 subsystem (share)

After much fiddling around, I still feel that

window terminal

is not very useful, mainly due to In terms of development work and project release, my pile of commands don't work at all. I'm going to build a virtual machine, of course not referring toVirtualBoxandVMware Workstation, well, yeswin10's own subsystem.Introduction

Linux

subsystem forWindows(English: Windows Subsystem for Linux, referred to as WSL) is a system forA compatibility layer that can natively runLinuxbinary executable files (ELFformat) on Windows10andWindows Server 2019.Preparation

Make sure that the current system version number is higher than 1607 (Build 14393.10).

1. Before installation, you need to modify some system settings. First, select Settings->Update & Security->Developer Options in the Start menu, and select the third item, Developer Mode.

One article explains the installation and configuration of Win10 subsystem (share)2. Open Programs and Features in the Control Panel to enable or disable

Windows

features, and check the # that applies toLinux##Windowssubsystem, click OK, wait for the system to be configured and then restart the computer.Installation

Early versions provided the command installation

lxrun /install /y #此命令已经废弃

But in the new version, this command has been abandoned, and it is recommended to use the store installation.

Open the store->Search

linux

, you will see a series of subsystems, you can choose

Ubuntuinstallin the start menu Find theUbuntu

you just installed, start it, initialize it, enter your username and password, and you're basically done.

Of course, I feel that the most important point is not to use the subsystem inwindows

.

Use

to open

Windows Terminal

Enter

wsl, or create a newtabSelectUbuntuthat is Can.

wsl

You will find that the drive letter ofOne article explains the installation and configuration of Win10 subsystem (share)window

is automatically mounted, and the operation is as fierce as a tiger, Nima, it is actually the same as

windowsIntegrated into one. There is no distinction between you and me, there is no distinction between you and me. In this way, you can execute thewindowscommand inLinux, which will be even more powerful.windowsSetLinuxas a subsystem. This operation is simply outrageous.Trybash

, try

expect, it works smoothly. It's so cool, isn't this what I want? I can't help laughing like a pig.Feeling

Think about maintaining different projects on more than a dozen different servers. Using

windows

to maintain

Linuxis really nonsense. . But it's different now. There are subsystems. Everything is different. It's like seeing an oasis in the desert.To be honest,window

is getting easier and easier to use now, and installing a solid-state disk is as fast as lightning. It’s just that the

UIis a bit ugly without moral integrity.Recommended learning:windows tutorial

The above is the detailed content of One article explains the installation and configuration of Win10 subsystem (share). For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:chuchur.com. If there is any infringement, please contact admin@php.cn delete