asp.net core2.0 Deployment Centos7/linux System-Install deployment (i)

Source: Internet
Author: User
Tags dotnet
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)


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.