The idea project is deployed to a Linux server

The idea project is deployed to a Linux server

idea package project

First click maven on the right
insert image description here
to find the life cycle under the project, double-click the package
insert image description here
below to see the packaging process,
insert image description here
which is a sign of success
insert image description here
, which means that the packaging is successful, then find the project, find the target folder, and you can see the packaged jar package
insert image description here
Now migrate ruoyi-admin.jar to the deployment location

insert image description here
Here I use xftp to transfer the file directly to the server, fill in the host address (server), user name and password,
insert image description here
enter the directory where you want to place the file, and drag and drop it directly to the target address.
insert image description here
I also put the database file that needs to be used in this directory.

import database file

To import the database with the source command, you need to log in to the database terminal first:

create database

 create database ry;

use database

use ry;

set encoding

set names utf8;

Import the database (it is best to operate under the file where the database is located, otherwise you need to fill in the absolute address)

source ry.sql

insert image description here
After the data import is complete, you can check the tables in the database to see if they are complete

show tables;

insert image description here

run jar file

 java -jar ruoyi-admin.jar

insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/qq_40713201/article/details/130135424
Recommended