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
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
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
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.
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.