Skip to content

后台管理系统,一个基于springboot和vue写的前后端分离项目。

Notifications You must be signed in to change notification settings

wDecap/springbootbackstage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ada95e0 · Nov 15, 2022

History

17 Commits
May 3, 2022
Jun 9, 2022
May 29, 2022
Jun 10, 2022
Jun 13, 2022
Jun 13, 2022
May 3, 2022
Nov 15, 2022
May 3, 2022
May 3, 2022
May 29, 2022
Jun 9, 2022

Repository files navigation

后台管理系统

管理员后台展示

主页

数据报表

系统管理

  • 用户管理

  • 角色管理

  • 菜单管理

  • 文件管理

课程管理

学生用户前台展示

打jar包

mvn clean package -DskipTests

参数说明:-DskipTests 不测试

测试运行jar包

java -jar ./springbootbackstage-0.0.1-SNAPSHOT.jar

创建目录:

mkdir -p /home/server/springbootbackstage

将jar包放在/home/server/springbootbackstage

后台启动

cd /home/server/springbootbackstage
nohup java -jar ./springbootbackstage-0.0.1-SNAPSHOT.jar &

查看日志

tail -500f nohup.out

相关进程

查看java进程
ps -ef | grep java

杀死进程
kill -9 进程号


vue打包

cd vue
npm run build

dist包

安装anywhere

前端静态资源服务器插件

npm install anywhere -g

在dist包下

anywhere -p 8080

配置nginx.conf

vim /usr/local/webserver/nginx/conf/nginx.conf

改写以下内容
server
  {
    listen 8089;#监听端口 
    server_name localhost;#域名
      location / {
    root /home/server/dist;  
    index index.html index.htm;
    try_files $uri $uri/ /index.html; #解决history路由模式刷新404问题
    }
 }

nginx重启

/usr/local/webserver/nginx/sbin/nginx -s reload  

前端文件上传和导出的url需要配置serverIp

文件上传、下载和导出需要使用服务器公网IP

接口请求也需要使用公网IP

About

后台管理系统,一个基于springboot和vue写的前后端分离项目。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published