Linux (Ubuntu) to build asp.net core environment _ practical skills

Source: Internet
Author: User
Tags curl


Let's learn about asp.net Core running in Ubuntu today. There is no need to install mono.



Environment



Ubuntu 14.04.4 LTS Server version of the new installation system.



Download Address: Http://mirrors.neusoft.edu.cn/ubuntu-releases/14.04.4/ubuntu-14.04.4-server-amd64.iso



You can also download the desktop version of the installation.



Download Address: http://mirrors.neusoft.edu.cn/ubuntu-releases/14.04.4/



Install DNVM



First ensure that unzip and curl are installed




 code as follows:

sudo apt-get install unzip curl





Download and install DNVM





 code as follows:
Curl-ssl https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | Dnx_branch=dev sh && Source ~/.dnx/dnvm/dnvm.sh





After the installation is complete, run DNVM as shown below to prove the installation is successful.






Install DNX



Install DNX for. NET Core



1. Install DNX necessary environment





code as follows:
sudo apt-get install Libunwind8 gettext libssl-dev libcurl4-openssl-dev zlib1g libicu-dev Uuid-dev





2. Use DNVM to install DNX for. NET Core





 code as follows:
DNVM Upgrade-r CORECLR





Install LIBUV


sudo apt-get install make automake libtool curl Curl-ssl
https://github.com/libuv/libuv/archive/v1.8.0.tar.gz | sudo tar zxfv--c/usr/local/src
cd/usr/local/src/libuv-1.8.0
sudo sh autogen.sh
sudo./configure
sudo make
sudo make install
sudo rm-rf/usr/local/src/libuv-1.8.0 && cd ~/
sudo ldconfig


Now that the environment is installed, let's deploy the project.



Upload the project to Ubuntu.



Go to the project directory and run the following command.





 code as follows:
Dnu restorednu build--framework dnxcore50dnx Web





Run successfully:






Reference Documentation:



Https://docs.asp.net/en/latest/getting-started/installing-on-linux.html



If you think this article is helpful to you, please share it with more small partners, thank you.


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.