Run the. NET core Open source project-comcms

Source: Internet
Author: User

Recently saw this open-source project, some people can not run up, I think it is quite easy ... Record, by the way, to help a small partner who can't run.

Get ready:

Project: Https://github.com/hogenwang/comcms_core

Visual Studio 2017:https://visualstudio.microsoft.com/zh-hans/downloads/

Mysql-5.7.22-winx64:https://www.mysql.com/downloads/(the project author is said to use 5.7, so I also downloaded the 5.7. Looking for the old version of the download, did not download the new edition)

Database has found that download difficult can be to my Baidu network disk download: Link: https://pan.baidu.com/s/1RqYSvIF3mK5Mf-6eRdO18w Password: h76x

. NET core2.1 sdk:https://www.microsoft.com/net/download/windows (tip: To use. NET Core 2.1 in Visual Studio, you need the visual Studio 2017 15.7 or later. )

Look at the version in the Help screen of VS,

I'll go ahead and update the wave ....

Let's first install the database MySQL

This is what it looks like after the decompression:

Configure Environment Variables First:

Then go in and edit the system variable path, if it is win10 directly into the new, but in order to facilitate the low-system version of the user, I clicked the edit text

Then write on the back:;D: \program Files\mysql-5.7.22-winx64\bin;

It means: Unzip the path \ Bin, (remember to bring a semicolon before and after, if there is a semicolon in front of it, I have no)

Finally, always point out that the environment variable is configured well.

Next create a configuration file what's

Create a new Data folder and a My.ini file under D:\Program files\mysql-5.7.22-winx64 first

(The following will not emphasize the installation directory what, I see clearly, I directly use my directory.)

After the build is like this: (about this My.ini file may have little white do not understand, is the new text file and then linked to the suffix name to change to this is good.) How to set file display suffix name yourself Baidu)

Then open the My.ini file with Notepad and start writing something that is on the piece:

Look at the change, just change the two path.

[Client]port=3306default-character-set=utf8[mysqld] # set to own MySQL installation directory Basedir =d:\program files\mysql-5.7. -winx64# is set to MySQL data directory datadir=d:\program files\mysql-5.7. -winx64\dataport=3306character_set_server=Utf8sql_mode= no_engine_substitution,no_auto_create_user# Open Query cache Explicit_defaults_for_timestamp=true Skip-grant-tables

and started to get the Data folder.

Win inside Search cmd, right-click Run as Administrator

Then cut the disk to D:\Program Files\mysql-5.7.22-winx64\bin run mysqld--initialize-insecure--user=mysql command (note that there are spaces).

Do not understand the look at me this diagram, enter the return and then just like this. (Please ignore my error message .....) You follow my process should not be error.

and start installing the service.

Continue typing in cmd:mysqld-install (if the service successfully installed instructions registered successfully)

Then start the service:net start MySQL (boot success is OK)

Figures:

Well, MySQL is ready to install. Next we import the database needed for the project

First enter MySQL, or in just the CMD interface, enter mysql-u root-p and then enter

Just installed MySQL, superuser root is no password, so directly enter into MySQL, MySQL prompt is: mysql>

Now start importing the project's database sql

After the decompression we look at the \comcms_core-master\comcms of the project. The Web\appsettings.json file has this field database=comcms2, which is the database connection string.

The name of the database displayed is "COMCMS2"

So we enter the command in CMD create database comcms2;

Then the Comcmscore.sql file in the \comcms_core-master\data directory is the SQL we are going to import.

First copy this to the root of the hard disk, I put it on the E:\comcmscore.sql

In cmd input: usecomcms2; Enter again:SOURCE e:/comcmscore.sql

Because there was too much information when I was doing this, I didn't, so I didn't.

OK, now the database is ready. If you have questions, refer to these two links:

Https://www.cnblogs.com/jiangxiaobo/p/7089345.html https://www.cnblogs.com/LxyXY/p/7708016.html

My vs is not yet installed, waiting ...

Ok ok

Then open the open source project with vs2017, right-comcms.web to see whether the startup project is not the right button to set the Startup project. Right-click the project properties to see if the target frame is core 2.1. Yes, right-click on the solution build and run it. If not, download the SDK installation ....

Note: If you re-download the installed core2.1 SDK then you will need to restart VS and then re-create the entire solution to run when you open it.

Run, enter the/ADMINCP after the address bar can go backstage

Enter admin on your account password and click Login

OK, it's finished.

Finally, attach the project author's blog: https://www.cnblogs.com/m5v8/p/9244920.html

What's wrong with the welcome Comment area pointed out that we hope that we can progress together.

Run the. NET core Open source project-comcms

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.