[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