. NET core Linux line-hyper-v installing the Linux system and the. NET Core SDK

Source: Internet
Author: User
Tags dotnet ftp login

    1. Download Linux system, select Install Centos7

: https://www.centos.org/download/

  1. Installing CENTOS7
  2. Hyper-V Select new virtual machine
  3. According to the wizard all the way next, virtual machine algebra select 2 generation. Installation Options Select the ISO you just downloaded
  4. Select the virtual machine that you just created, and disable security enable secure boot in the properties. If not disabled, start the system installation when the prompt error, probably means that the hash check the past does not go.
  5. The Hyper-V Virtual Switch Manager creates a new switch. If you have one, you can skip it. New virtual machine settings inside the network adapter select switch.
  6. Install CENTOS7. Reference article: http://www.cnblogs.com/dunitian/p/4976077.html

    The article explains in great detail how to install CentOS, including partitions, etc.

  7. When the system installation is complete, set some basic properties
  8. set the NIC static IP and set the NIC to boot

    # IP A view the NIC name. Navigate to File/etc/sysconfig/network-scripts. Edit the file name of the network card, you can use the VI command, or use FTP login such as WINSCP to edit.

    Names like Ifcfg-eth0, the main configuration options:

    Onboot=yes//boot up

    ipaddr=192.168.77.60//IP Address

    PREFIX=24//Mask 255.255.255.0

    gateway=192.168.77.1//Gateway

    dns1=192.168.77.1//dns

    Reference article: http://www.cnblogs.com/dunitian/p/4975830.html

  9. Install the. NET Core SDK

    Official instruction Note address:Https://www.microsoft.com/net/core#centos

Curl-ssl https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview1/scripts/obtain/dotnet-install.sh | Bash/dev/stdin--version 1.0.0-preview1-002702--install-dir ~/dotnet

You may be prompted for missing package Libunwind,libicu and so on. You can install the missing packages normally. Install using the yum-y install libunwind command

    1. All installed smoothly, you can run our first sentence in Linux Hello World.
    2. Create a new catalog and start our project. Mkdir/sourcecode/myfirstapp
    3. Navigate to the directory you just created CD Mkdir/sourcecode/myfirstapp
    4. Run the command dotnet new to initialize a newer console program, you can edit the Program.cs file, be very familiar with the main function, write something casually.
    5. Run the command dotnet run

. NET core Linux line-hyper-v installing the Linux system and the. NET Core SDK

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.