Preface
There are still many .NET applications currently, and the functions have also been upgraded a lot after updating to the 6.0 SDK. It is an environment construction technology that operation and maintenance personnel must know. This is not just for applications on win systems, but also on Linux. NET environment is equally important, so this article uses the [Huawei Cloud Server L Instance] environment to build a .NET running environment and test it through coding.
Official website address
Purchase services
Simply click [Purchase] on the homepage to jump to the current page.
Image and specification selection
For the mirror, choose whichever one is closest to you. Nowadays, Ubuntu is used as the system in the teaching direction, so Ubuntu is also chosen here.
Here we choose the basic specifications [2 cores and 2G, you can buy it on a monthly basis]
After confirming the configuration, click Pay.
If there is an abnormality on the web page when purchasing, please go directly to check the order.
Can be used after payment is completed
Return order information
Confirm server purchase is successful
Enter the console
To view the server, click [Server Location] to see the [blue] font indicated by the arrow.
Confirm the service and check the public network address.
XShell connection through public network address
Connect based on the public IP address we viewed.
reset password
Need to restart
Restart prompt
Login in Xshell
The account is [root], and the password has just been modified.
Wait for the server to restart before connecting.
Click the link and click [Accept and Save]
Confirm the link is successful
.NET basic environment download
sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
sudo yum install dotnet-sdk-3.1 -y
Basic environment installation
Version query
dotnet --version
Run .NET
dotnet new console -o MyApp
cd MyApp/
dotnet run
Run successfully
Take a look at the running code
Make sure you can run .Net, done.
Summarize
I installed the .NET operating environment using [Huawei Cloud Server L Instance] and tested the code for running .NET. The whole process was relatively smooth, and the installation steps were simple and convenient. If you change the corresponding environment, you only need to change the environment. It’s all you need and it’s quite convenient. I hope this article can improve your operation and maintenance capabilities.