首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >宝塔前后端搭建

宝塔前后端搭建

作者头像
zhangjiqun
发布2024-12-16 19:23:08
发布2024-12-16 19:23:08
2550
举报
文章被收录于专栏:计算机工具计算机工具

宝塔前后端搭建

前端:vue ,使用Element ui 控件

后端:使用spring boot mybatis。打包jar 上传服务器

数据库:mysql,navicate作用数据库表操作工具

先来个效果图吧;

最终网站

远程接口访问

本地接口访问

宝塔建网站数据库

上传jar 和vue 或者html界面

建立数据库

navicate 连接远程mysql

配置nginx

代码语言:javascript
复制
#user  nobody;
worker_processes  3;
 
#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;
 
#pid        logs/nginx.pid;
 
 
events {
    worker_connections  1024;
}
 
 
http {
    include       mime.types;
    default_type  application/octet-stream;
 
    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';
 
    #access_log  logs/access.log  main;
 
    sendfile        on;
    #tcp_nopush     on;
 
    #keepalive_timeout  0;
    keepalive_timeout  65;
 
    #gzip  on;



    
server {
        listen       80;
        server_name  ll;
 
        charset utf-8;
	location / { # /表示根目录,该配置表示Nginx默认打开/www下的index.html  
	   # root /www/wwwroot/tm.bt.cn;
	     root /www/wwwroot/zjq.com;
	   # root /www/wwwroot;
	   # root /www/wwwroot/192.144.212.56;
	   # root /www/server/tomcat9/demo/src/main/resources/templates;
	    index  index.html index.htm;
            	}
            	
       
       location = /project {
	          root /www/wwwroot/192.144.212.56;
            index  index.html index.htm;
        }
    }
     
     
     
    
    
 }

站点启用tomcat,没有安装需要安装

配置 spring boot jar包

宝塔查询数据库登录

mysql -umiaosha -p123456

注意没有空格

宝塔查询数据库查询

注意:数据库命.表明

idea 打jar包失败

就是数据库名称 ip配置的问题

Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plu

就是数据库名称 ip配置的问题

宝塔数据库存放目录

有道词典取词导致Navicat闪退
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2024-12-16,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 宝塔前后端搭建
  • 最终网站
  • 远程接口访问
  • 本地接口访问
  • 宝塔建网站数据库
  • 上传jar 和vue 或者html界面
  • 建立数据库
  • navicate 连接远程mysql
  • 配置nginx
  • 站点启用tomcat,没有安装需要安装
  • 配置 spring boot jar包
  • 宝塔查询数据库登录
  • 宝塔查询数据库查询
  • idea 打jar包失败
  • Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plu
  • 宝塔数据库存放目录
    • 有道词典取词导致Navicat闪退
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档