In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Description
Since Win 10, Microsoft operating system built-in support Linux subsystem, win 10 has its own Microsoft Store App Store, you can directly install the Linux subsystem, but on Server 2016 / 2019, the system does not have a built-in Microsoft Store App Store, so you can not directly install the subsystem through the store.
Let's take a look at how to install the Linux subsystem on the Server 2016 engine 2019 server operating system.
Operation procedure Open function supports WSL to open the PowerShell terminal with administrator privileges, and execute the following instruction: Enable-WindowsOptionalFeature-Online-FeatureName Microsoft-Windows-Subsystem-Linux
Turn on the functions supported by the Linux subsystem.
You can also check the corresponding function in the graphical interface by clicking "add Server function".
Enabling this feature for the first time involves rebooting the operating system. PS > Enable-WindowsOptionalFeature-Online-FeatureName Microsoft-Windows-Subsystem-LinuxPath: Online: TrueRestartNeeded: False
If the command is executed, the above information is displayed, indicating that the function is turned on and there is no need to restart it.
Download Linux distribution package file
Go to the Microsoft Cloud download page https://docs.microsoft.com/en-us/windows/wsl/install-manual to download the required Linux distribution
The example here uses the ps script to download remote files, taking Ubuntu version 18.04 as an example
Invoke-WebRequest-Uri https://aka.ms/wsl-ubuntu-1804-OutFile ~ / Ubuntu1804.appx-UseBasicParsing
Or use curl.exe to download:
Curl.exe-L-o ~ / ubuntu1804.appx https://aka.ms/wsl-ubuntu-1804 starts unpacking the file
Use the following command to do this:
Rename-Item ~ / Ubuntu1804.appx ~ / Ubuntu1804.zipExpand-Archive ~ / Ubuntu1804.zip ~ / Ubuntu1804
After unzipping the file, you can see the contents of the file directory shown in the figure.
Start installing the Linux subsystem
Open ubuntu1804.exe to enter the command line installation interface:
Installing, this may take a few minutes...Please create a default UNIX user account. The username does not need to match your Windows username.For more information visit: https://aka.ms/wslusersEnter new UNIX username: YourUserNameEnter new UNIX password:Retype new UNIX password:passwd: password updated successfullyInstallation fulfilled to run a command as administrator (user "root"), use "sudo" .See "man sudo_root" for details.eric@WIN-SERVER2019:~$
Wait a moment, you can start to enter a custom user name, enter a password, and safely complete.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.