ASP. NET core one Centos environment deployment

Source: Internet
Author: User
Tags dotnet

. Netcore operating environment, creating ASP. CentOS 7, dotnet-sdk-2.0.0-2.0.0-1.x86_64
    • Create and run a project directly in Liunx
This situation is relatively simple, and in real development, it is seldom used .Reference ConnectionConnect https://www.cnblogs.com/savorboard/p/dot-net-linux-jexus.html https://www.cnblogs.com/smileberry/p/6878421.html
  1. Create a catalog file mkdir Web2
  2. Create Project        dotnet new Web                     &NBSP ;                          ,         &NB Sp                          ,         &NB Sp                                 &NBSP ;                                 &NBSP ;                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp;                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                       
  3. Run Project  dotnet run                             &N Bsp                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                                  &NBS P                          ,         &NB Sp                          ,         &NB Sp                                                            ,         &N Bsp              
  4. Close firewall     SYSTEMCTL stop firewalld.service                                                     &nbs P                                                                                                                                                                                                   &NBS P     &NBSP                          ,         &NB Sp                          ,         &NB Sp                                 
  5. Modify bound IP and Ports                                                                 &nbs P                                                                                                                                  &NBS P                          ,         &NB Sp                          ,         &NB Sp   &NBSp                          ,         &NB Sp                          ,         &NB Sp     
        

    • Other platforms are written, published to Liunx

This situation is more common in actual development

Reference connection: https://www.cnblogs.com/zuqing/p/8231957.html

  1. Create a site project in VS, Get project                             &NBS P                                                                                                                                                                 &NBSP ;                          ,         &NB Sp                          ,         &NB Sp   &NBSP                          ,         &NB Sp                               
  2. Edit Listener Address                                 &NB Sp                          ,         &NB Sp                                  &NBS P                          ,         &NB Sp                                 &NBSP ;                          ,         &NB Sp                          ,         &NB Sp                          ,         &NBsp                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp            

  3. Publish file, select folder to publish to publish file, copy to Liunx server                          & nbsp                          ,         &NB Sp                                  &NBS P                                  &NBS P                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                                                            ,         &N Bsp                          ,         &NB Sp     
  4. CD to directory, dotnet WebApplication2.dll                         &NBS P                          ,         &NB Sp                                                                 &NBSP ;                                  &N Bsp                                  &NBS P                          ,         &NB Sp                          ,         &NB Sp &nbsp                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                       
  5. Need to update dotnet SDK                               nbsp                          ,         &NB Sp                                 &NBSP ;                                 &NBSP ;                          ,         &NB sp;                              &N Bsp                                 &NBSP ;                                  &NBS P                         ,         &NB Sp                          ,         &NB Sp                                 &NBSP ;                          ,         &NB Sp                          ,         &NB Sp                                 &nbsp ;                          ,         &NB Sp                    
  6. Rerun dotnet WebApplication2.dll                                                           &NBS P                          ,         &NB Sp                                  &NBS P                                  &NBS P                                 &NBSP ;                          ,         &NB Sp                          ,         &NB Sp &nbsp                   

ASP. NET core one Centos environment deployment

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.