Windows natively runs the ruoyi microservice version RuoYi-Cloud

ruoyi official deployment document

http://doc.ruoyi.vip/ruoyi-cloud/document/hjbs.html#%E5%87%86%E5%A4%87%E5%B7%A5%E4%BD%9C
But I often use idea and no Picture, so I wrote this blog post with reference to the official document.

backend start

database

MySQL, the blogger installed MySQL5.7.30, please refer to
MySQL-5.7.30
installation for details

Import Data

insert image description here

Create database ry-cloud and import data script ry_2023xxxx.sql (required), quartz.sql (optional)
Create database ry-config and import data script ry_config_2022xxxx.sql (required)

insert image description here

JDK

JDK installation tutorial

maven

maven installation tutorial

git pull code

Use idea to pull code
insert image description here
git address from gitee: https://gitee.com/y_project/RuoYi-Cloud.git

configure nacos

After pulling the code, you need to configure nacos

spring.datasource.platform=mysql
db.num=1
db.url.0=jdbc:mysql://localhost:3306/ry-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
db.user=root
db.password= 自己的密码

insert image description here

Start nacos for Windows

Click the startup.cmd file in nacos/bin.
nacos installation tutorial

Start Redis

Redis7 installation tutorial

Start the RuoYi-Cloud backend basic module

  • RuoYiGatewayApplication (required for gateway modules)
    insert image description here

  • RuoYiAuthApplication (required for authentication modules)
    insert image description here

  • There is a problem with RuoYiSystemApplication (required for system modules)
    :

  1. nacos no configurationinsert image description here

  2. Redis initialization failed. insert image description here
    原因:Nacos' own SQL script may have been imported, and the ry-config table was not used.

successinsert image description here

front-end startup

nodejs installation

nodejs installation tutorial
nodejs does not recommend installing the latest version. ruoyi installs the Node14 version.

Dependency installation

# 进入目录
cd ruoyi-ui

# 安装依赖
npm install

start up

# 本地开发 启动项目
npm run dev

Open the browser, localhost:80, (the front end will be opened automatically after running), the default account/password admin/admin123
If the login page can be displayed correctly, and the menu and page display are normal, it means that the environment is successfully built.

The system is shown in the figure.
insert image description here

Guess you like

Origin blog.csdn.net/dwh19992018/article/details/129724173