This article is a mirror article of machine translation, please click here to jump to the original article.

View: 16152|Reply: 2

[linux] Install docker and net core with the Linux subsystem that comes with Win10

[Copy link]
Posted on 3/1/2019 9:37:20 AM | | | |
This post was last edited by lzzsf on 2019-3-1 09:56

Preparation before development: You can install the Linux subsystem based on Windows 10 for development and debugging by yourself, because it is suitable for your own development, feel that it is not good, please install a virtual machine, Help-V or VM is fine, and it is relatively tall, and there are many versions to choose from.
The subsystem is Windows 10 and must be in developer mode, where: Settings--- Update and Security - Developer Options does not start developer mode. Then search for Linux in the app store, install the Ubuntu version of the Linux system, you can use $su -root user to log in for the first start, then set a password, confirm the password, if you don't like root, you can create a user by yourself, $useradd username, and then set a password, and you can use a new username.

Install Docker on Linux (don't know what Docker is,Click here), docker official reference documentationClick here.
Install docker support
1 Update the package index for Ubuntu
2 Let the server update the repository using HTTPS
3 Add the docker key
4 Verification key
5 Set up officially supported repositories
6 Install docker
##先更新Ubuntu索引
$ sudo apt-get update
##安装社区版本 (docker ce), docker EE is the enterprise version
$ sudo apt-get install docker-ce
(If installing a fixed version, optionally install docker-ce=version number)

7 Check whether the installation is complete and enter $docker --version (as shown in the figure, the installation is complete)

Install the .NET core SDK
Microsoft official website document, click here, this time to install Ubuntu version 18.04, query the Ubuntu version command $ lsb_release -a
1 Sign up for Microsoft authorization2 Installation. NET SDK
3 Detect the results and query the version
$ dotnet --version

At this point, .net core can be started on Linux, supporting all of themdotnet command(Old rules, read the document by yourself, remember by yourself, manual funny) |
The reason why many large manufacturers have abandoned net is largely because they cannot boast about the platform, net is only limited to deployment in IIS, and some people say that it is because of the poor C# syntax and low efficiency, I don't know where this confidence comes from. Large rocks (New Life TeamI said that if you want a high salary, you must learn more and contribute more to the community. Have time to continue filling in the pit deployed to docker (Study documentation







Previous:[Generational Benefits] CSDN download
Next:C# After deserialization data processing return json()
Posted on 3/1/2019 9:46:18 AM |
There is a problem with the picture
Posted on 3/1/2019 9:57:18 AM |
This time it's much better than last time, give you a thumbs up
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com