The idea project is deployed to a Linux server
idea package project
First click maven on the right
to find the life cycle under the project, double-click the package
below to see the packaging process,
which is a sign of success
, which means that the packaging is successful, then find the project, find the target folder, and you can see the packaged jar package
Now migrate ruoyi-admin.jar to the deployment location
Here I use xftp to transfer the file directly to the server, fill in the host address (server), user name and password,
enter the directory where you want to place the file, and drag and drop it directly to the target address.
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
After the data import is complete, you can check the tables in the database to see if they are complete
show tables;
run jar file
java -jar ruoyi-admin.jar