Over the past few days, I have been tossing ASP in Linux. NET5. In other operating systems, ASP. NET5 or. NET application, to run on the complete MSVM (CoreCLR) is not far from reaching, the application effect. Currently, it can only run on the CLR of Mono, but it can basically run various frameworks and Applications of ASP. net5. Now that. NET is open-source, everyone is concerned about whether. Net can be fully run in Linux. I have sorted out the installation process in the next few days. The following Commands
Over the past few days, I have been tossing ASP in Linux. in other operating systems, ASP. NET 5 or. NET application, to run on the complete ms vm (CoreCLR) is not far from reaching, the application effect.
Currently, it can only run on the CLR of Mono, but it can basically run various frameworks and Applications of ASP. NET 5 completely.
Now that. NET is open-source, everyone is concerned about whether. Net can be fully run in Linux. I have sorted out the installation process in the next few days.
I have deployed Ubuntu 15.04 and CentOS 7 as follows:
Install Mono
1. First, use the command to update the software source:
Ubuntu:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EFecho "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.listsudo apt-get update
CentOS:
rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
yum update
Install the mono-complete package to complete Mono installation. The latest version of Mono is 4.0.1.
Install DNVM
First, install libuv, which is part of the support library of HttpServer (Kestrel). Currently, Jexus can be used for replacement in Linux. I will introduce it in subsequent articles.
Ubuntu:
sudo apt-get install automake libtool curlcurl -sSL https://github.com/libuv/libuv/archive/v1.4.2.tar.gz | sudo tar zxfv - -C /usr/local/srccd /usr/local/src/libuv-1.4.2sudo sh autogen.shsudo ./configuresudo make sudo make installsudo rm -rf /usr/local/src/libuv-1.4.2 && cd ~/sudo ldconfig
View Code
CentOS:
sudo yum install gccsudo yum install automakesudo yum install libtoolgit clone https://github.com/libuv/libuv.gitcd libuvsh autogen.sh./configuremakemake checksudo make install
View CodeASP. NET 5 and DNX installation:
curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.shdnvm upgrade
Later, we will introduce how to use Visual Studio Code. The project will be generated from Linux and deployed to Jexus for running.
How to install Visual Studio Code http://www.linuxidc.com/Linux/2015-05/117005.htm on Ubuntu
Configure ASP. NET (Apache + Mono) http://www.linuxidc.com/Linux/2013-07/87599.htm in Linux (Ubuntu/openSUSE/CentOS)
Configure asp.net http://www.linuxidc.com/Linux/2013-07/87598.htm in Linux (Apache) + Mono
How to upgrade Mono http://www.linuxidc.com/Linux/2013-06/85391.htm
Http://www.linuxidc.com/Linux/2013-06/85394.htm of idea about running ASP. NET 4 website under Mono 3.0
Install Mono and Jexus on Ubuntu to build the. NET runtime environment http://www.linuxidc.com/Linux/2013-06/85388.htm
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-05/117177.htm