您当前的位置: 首页 >  后端

ZhangJiQun&MXP

暂无认证

  • 0浏览

    0关注

    1187博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

宝塔前后端搭建

ZhangJiQun&MXP 发布时间:2021-07-21 19:30:24 ,浏览量:0

目录

宝塔前后端搭建

最终网站

 远程接口访问​

 本地接口访问​

 宝塔建网站数据库

 上传jar 和vue 或者html界面​

 建立数据库​

配置nginx

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

配置 spring boot jar包

宝塔查询数据库登录

宝塔查询数据库查询

idea 打jar包失败

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

 宝塔数据库存放目录​

有道词典取词导致Navicat闪退

宝塔前后端搭建

前端:vue ,使用Element ui 控件

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

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

先来个效果图吧;

最终网站

 远程接口访问  本地接口访问  宝塔建网站数据库

 

 上传jar 和vue 或者html界面  建立数据库 navicate 连接远程mysql

 

配置nginx

#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闪退

关注
打赏
1665659684
查看更多评论
立即登录/注册

微信扫码登录

0.0392s