1, install dotnet SDK (add product secret key and Yum source)Add secret key: sudo rpm--import https://packages.microsoft.com/keys/microsoft.asc add yum Source: sudo sh-c ' echo-e ' [Packages-micro Soft-com-prod]\nname=packages-microsoft-com-prod \nbaseurl=https://packages.microsoft.com/yumrepos/ Microsoft-rhel7.3-prod\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc ">/ Etc/yum.repos.d/dotnetdev.repo ' start installation: sudo yum install libunwind libicu sudo yum install Dotn et-sdk-2.1.104 as shown: All the way y down can be above dotnet SDK has been installed successfully ...
Second, view version number: command: dotnet--version
third, the new ASP.net core Webapi project and published to Linux
Create a new directory (ASPNETCOREAPI) on the Linux system and upload the published packages to Linux, as shown in the following diagram:
Startup Project, Command: Dotnet WebApplication1.dll, as shown in figure:
The description started successfully ....
iv. Verification of Access
All Access was successful ...
* Note the problem: 8080 of the port is my early open, so I can visit Oh.
Legacy issues: Dotnet WebApplication1.dll is our temporary opening of the 8080-port program, if SSH is switched off, the 8080-port also stopped, so we have to 8080 ports to protect, has been to make 8080 ports belong to the normal running state, In the next article we will explain the guardian of the process.
Next article: asp.net core2.0 deployment centos7/linux System-Daemon Supervisor (ii)