"ASP. NET Core" ASP 2.0 + EF6 + Linux +mysql Mashup

Source: Internet
Author: User

Good news! Good news! The same way you can run Linux with the ASP. NET Framework class Library is also available!

Yes, you did not read wrong! ASP. NET Core 2.0,.net Framework class library, Linux all to you, not 998 only 10 minutes to complete the ultimate operation!

Writing is not good, coupled with a bit sleepy late at night, not much to say directly to the point:

The following non-personal original, from the Woo cloud boss, on Mono Run the ASP. NET Core 2.0 method:

The normal choice of ASP. NET Core Web Development

Change. NET core to the. NET Framework in the upper-left corner

Right-click Edit csproj file

Add multi-system support (be careful not to make typos)

Modify the configuration at publish time to change the target runtime to Ubuntu

Delete the dll shown 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 (for the command to install Mono, please refer to the official website)

Paired with Jexus

https://www.jexus.org/(because mono is already installed, use Curl Https://jexus.org/release/install|sh to install the Jexus universal version, note: Run the install command, Requires the operator to have root privileges. )

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

Finally, use the ultimate command/usr/jexus/jws start to run the Web site.

Here is my real, ASP. NET Core 2.0 + EF6 + Linux +mysql (originally wanted to try Oracle, but this database is too cumbersome to install, only by other warriors to try)

The code is below, to tell the truth this kind of mash-up is quite interesting (note that the Mysql.data version is not too high, the version that supports. NET standard is problematic, and time is wasted here t_t. )

Original: http://www.cnblogs.com/jzfan/archive/2017/10/27/7741074.html

"ASP. NET Core" ASP 2.0 + EF6 + Linux +mysql Mashup

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.