1. installCentOS 7

2. install.net Core 2 Environmental Science, Refer to official documents:( Recommend adoptionSDK (tar.gz)


3. After executing the order according to the official documents, todotnet Set up soft connection, Can be used globally.

ln -s $HOME/dotnet/dotnet /usr/local/bin
4. take.net core Ofwebapi After project release, Transfer released documents tolinux Server directory, Then execute in the directory with the command line

dotnet TestCore.dll
Be careful: Defaultwebapi Access path ishttp://localhost:5000/, Need towebapi OfProgram.cs Modify the following code under the document, Add specified accessip And port.

public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args) .UseUrls("http://*:8070")
.UseStartup<Startup>() .Build(); If the prompt is as follows, the startup is successful.

5. This way of installation, ifShell After exit, The service will stop, So you need to install the Daemons, Keep the service running( staywindows Not required under the system):


6. staywindows Simple installation under the system, Direct download.net core sdk Erection sequence, Ready to use after installation.