- ASP.NET Core 2 High Performance(Second Edition)
- James Singleton
- 345字
- 2021-07-08 09:39:07
Installing .NET Core 2
We're using Ubuntu Server 16.04 LTS in this guide, but these instructions will work on other versions too. Using Advanced Package Tool (APT), we can install .NET Core very easily, but first we will need to add a custom feed as .NET Core is not in the default repository.
First we need to add the .NET Core package source to the list used by APT. The package source is on Azure, so we write this URL (plus some other info) to a file in the folder of sources used by apt-get. We do this by redirecting the standard output of echo to it, using the following command:
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
All packages are signed with public key cryptography to verify their integrity (read the later chapters for more on this). We import the public key for the .NET Core packages from the Ubuntu key server with the apt-key command:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
We need to update our sources so that the latest changes can be picked up with this simple command:
sudo apt-get update
Now we are in a position to install .NET Core with the following command:
sudo apt-get install dotnet-sdk-2.0.0
If the SDK package ever makes it to the default list of sources, then this will be all you need to do.
After a wall of text scrolls, assuming you don't get any errors and you see the telemetry notice, you're ready to go. Type dotnet to see the usage information and dotnet --version to see the current version that you are running.
- Java面向?qū)ο笏枷肱c程序設(shè)計(jì)
- vSphere High Performance Cookbook
- jQuery EasyUI網(wǎng)站開發(fā)實(shí)戰(zhàn)
- INSTANT Sencha Touch
- 前端架構(gòu):從入門到微前端
- Java項(xiàng)目實(shí)戰(zhàn)精編
- Mobile Device Exploitation Cookbook
- 用案例學(xué)Java Web整合開發(fā)
- Python編程:從入門到實(shí)踐(第3版)
- HTML5與CSS3權(quán)威指南
- Offer來了:Java面試核心知識(shí)點(diǎn)精講(框架篇)
- 算法精解:C語言描述
- Analytics for the Internet of Things(IoT)
- Mastering R for Quantitative Finance
- 前端程序員面試筆試通關(guān)寶典