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:554949browse

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 to VirtualBox and VMware Workstation, well, yes win10's own subsystem. Introduction

Linux

subsystem for Windows (English: Windows Subsystem for Linux, referred to as WSL) is a system for A compatibility layer that can natively run Linux binary executable files (ELF format) on Windows10 and Windows 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 to Linux ##Windows subsystem, 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

Ubuntuinstall in the start menu Find the Ubuntu

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 in windows

.

Use

to open

Windows Terminal

Enter

wsl, or create a new tabSelect Ubuntuthat is Can.

wsl

You will find that the drive letter of One 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 the windows command in Linux, which will be even more powerful. windows Set Linux as a subsystem. This operation is simply outrageous. Try bash

, 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

Linux is 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

UI is 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