Linux~centos installed on the Netcore,helloworld return!

Source: Internet
Author: User
Tags dotnet

For cross-platform. Netcore, it is a trend to make its programs run on Linux systems, after all, many of our services are placed on Linux servers (redis,mongodb,myql,fastdfs,lucene), And we want to communicate with these Component Services, the code we need to use is java,python and so on, and these are not what we're good at, because we're a. NET engineer, haha!

For. The advent of Netcore allows us to run the start of the C # program on other systems, this cross-platform features, of course, is the next generation of Microsoft to occupy the market, of course, this is only a personal opinion, Let's take a look at the steps to deploy the. Netcore development environment on Linux-centos.

An SSH client that installs the CentOS window

Secure Shell is a good tool.

Two installations. Netcore Program

This process needs to be downloaded from the Internet, so it takes some time and patience to wait

    sudo yum install libunwind libicu    -ssl-o dotnet.tar.gz https://go.microsoft.com/ fwlink/? linkid=809131    sudo mkdir-p/opt/dotnet && sudo tar zxf dotnet.tar.gz-c/opt/    dotnet-s/op T/dotnet/dotnet/usr/local/bin-- Add soft links
Build the project, restore the class library, run Hello
    mkdir hwapp    cd hwapp    New
    dotnet Restore    dotnet Run

The result is, of course, what we expect!

Hope this article on just contact. Netcore's classmates have some help!

Linux~centos installed on the Netcore,helloworld return!

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.