Detailed steps for deploying the. net core Environment in Linux,. netcore
Note:The. net core installation environment on Linux requires a 64-bit system.
The installation and deployment are as follows:
1. Add the dotnet source to apt-get.
Ubuntu 14.04/Linux Mint 17
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893sudo apt-get update
Ubuntu 16.04
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893sudo apt-get update
Ubuntu 16.10
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ yakkety main" > /etc/apt/sources.list.d/dotnetdev.list'sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893sudo apt-get update
2. Install. NET Core SDK
The address of the latest SDK is as follows:
Official Address: https://www.microsoft.com/net/download/linux
Local download: http://www.bkjia.com/softs/472366.html
sudo apt-get install dotnet-dev-1.0.1
3. Generate sample code
After the SDK is installed, a sample code is generated to check whether the SDK is successfully installed.
dotnet new console -o hwappcd hwapp
4. Run the sample code to view the result.
dotnet restoredotnet run
If you see the familiar "Hello world" after execution, the installation is successful.
The above is the installation procedure. The deployment and operation will be described in the subsequent blog.
Summary
The above is all about this article. I hope this article will help you or use java. If you have any questions, please leave a message. Thank you for your support.