[Competition for what! Mixed together to make peat ox pills! Stupid] ASP. NET Core 2.0 + EF6 + Linux + MySql MashUps, coreef6

Source: Internet
Author: User

[Competition for what! Mixed together to make peat ox pills! Stupid] ASP. NET Core 2.0 + EF6 + Linux + MySql MashUps, coreef6

 

Good news! Great news! You can also use the ASP. NET Core 2.0 and. NET Framework class libraries to run on linux!

Yes, you are not mistaken! ASP. NET Core 2.0,. NET Framework class library, and linux are all provided to you. You can complete the ultimate operation in 10 minutes instead of 998!

 

I am not good at writing, and I am a little sleepy late at night. I will not talk about the subject directly:

 

The following is a non-self-developed method, from yunyun, yune.com, to run ASP. NET Core 2.0 on mono:

Normal selection of ASP. NET Core Web development

 

Change. NET Core to. NET Framework in the upper left corner.

 

Right-click to edit the csproj File

 

Added multi-system support (do not typo it)

 

Modify the configuration during release and change the target runtime to ubuntu

 

 

Delete the dll and upload it to linux

 

Run the program using the mono command (put it in the/var/www/default directory for easy operation)

Http://www.mono-project.com/download/#download-lin (mono installation command please refer to the official site)

 

Use with jexus

Https://www.jexus.org/(because mono has been installed before, directly use the curl https://jexus.org/release/install | sh to install jexus universal edition Note: run the installation command, the operator needs to have root privileges .)

Modify the/usr/jexus/siteconf/default configuration file as above.

 

 

Finally, run the ultimate command/usr/jexus/jws start to run the website.

 

 

The following is my practice: ASP. NET Core 2.0 + EF6 + Linux + MySql (originally I wanted to try Oracle, but it was too troublesome to install this database. I had to rely on other warriors to try it)

 

The code is below. To tell the truth, such a mix and match is quite interesting (note that it is mysql. the data version cannot be too high. the versions of NET Standard are problematic, and the time is wasted here T_T .)

Https://github.com/iJzFan/ASP.NET-Core-on-MONO

 

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.