How to set up Linux server for asp.net core 2 web app and make it visible on internet? Part 2 [Music no 2]

Go to linux server, eg. loggin via putty:

 

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg

sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg

sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'

sudo apt-get update

sudo apt-get install apt-transport-https

sudo apt-get update

sudo apt-get install dotnet-sdk-2.1.104

Y

.NET Core is installed :).

To make sure that all is up and running follow those bash commands

dotnet new console -o myApp

cd myApp

dotnet run

If you will see: „Hello word”… Than means that you can be more than sure that .net core is up running

 

https://docs.microsoft.com/pl-pl/dotnet/core/linux-prerequisites?tabs=netcore2x

https://www.microsoft.com/net/download/linux-package-manager/ubuntu16-04/sdk-current

https://www.microsoft.com/net/learn/get-started/windows

Leave a Comment

Twój adres email nie zostanie opublikowany. Pola, których wypełnienie jest wymagane, są oznaczone symbolem *