Files
xzs-mysql/docs/guide/video.html
T
2026-06-12 08:55:32 +08:00

46 lines
34 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="VuePress 2.0.0-beta.51">
<style>
:root {
--c-bg: #fff;
}
html.dark {
--c-bg: #22272e;
}
html, body {
background-color: var(--c-bg);
}
</style>
<script>
const userMode = localStorage.getItem('vuepress-color-scheme');
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
document.documentElement.classList.toggle('dark', true);
}
</script>
<title>7. 视频教程 | 学之思教程</title><meta name="description" content="学之思开发部署教程">
<link rel="modulepreload" href="/assets/app.d68faa27.js"><link rel="modulepreload" href="/assets/video.html.2b2ee8e9.js"><link rel="modulepreload" href="/assets/video.html.223c0851.js"><link rel="prefetch" href="/assets/index.html.fe66c5d6.js"><link rel="prefetch" href="/assets/admin.html.95aff702.js"><link rel="prefetch" href="/assets/database.html.d0f44a34.js"><link rel="prefetch" href="/assets/deploy.html.3556abb5.js"><link rel="prefetch" href="/assets/develop.html.70367536.js"><link rel="prefetch" href="/assets/feature.html.261d99f8.js"><link rel="prefetch" href="/assets/skill.html.a2155b8b.js"><link rel="prefetch" href="/assets/student.html.e082e38b.js"><link rel="prefetch" href="/assets/wx.html.0df5ac91.js"><link rel="prefetch" href="/assets/404.html.c3e557d0.js"><link rel="prefetch" href="/assets/index.html.6b587d66.js"><link rel="prefetch" href="/assets/admin.html.2aad01df.js"><link rel="prefetch" href="/assets/database.html.8d8ccadd.js"><link rel="prefetch" href="/assets/deploy.html.f01f907e.js"><link rel="prefetch" href="/assets/develop.html.77c8e4dd.js"><link rel="prefetch" href="/assets/feature.html.2d411785.js"><link rel="prefetch" href="/assets/skill.html.c9f7e6e8.js"><link rel="prefetch" href="/assets/student.html.a37a2b1e.js"><link rel="prefetch" href="/assets/wx.html.8525a4d3.js"><link rel="prefetch" href="/assets/404.html.6e28da5c.js">
<link rel="stylesheet" href="/assets/style.e2da3676.css">
</head>
<body>
<div id="app"><!--[--><div class="theme-container"><!--[--><header class="navbar"><div class="toggle-sidebar-button" title="toggle sidebar" aria-expanded="false" role="button" tabindex="0"><div class="icon" aria-hidden="true"><span></span><span></span><span></span></div></div><span><a href="/" class=""><img class="logo" src="https://www.mindskip.net/style/git/images/logo/logo.png" alt="学之思教程"><span class="site-name can-hide">学之思教程</span></a></span><div class="navbar-items-wrapper" style=""><!--[--><!--]--><nav class="navbar-items can-hide"><!--[--><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net" rel="noopener noreferrer" target="_blank" aria-label="官网"><!--[--><!--]--> 官网 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net/sdd.html" rel="noopener noreferrer" target="_blank" aria-label="思多多"><!--[--><!--]--> 思多多 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net/wdd.html" rel="noopener noreferrer" target="_blank" aria-label="维多多"><!--[--><!--]--> 维多多 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net/xzs.html" rel="noopener noreferrer" target="_blank" aria-label="学之思"><!--[--><!--]--> 学之思 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net/buy.html" rel="noopener noreferrer" target="_blank" aria-label="商业购买"><!--[--><!--]--> 商业购买 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><!--]--></nav><!--[--><!--]--><button class="toggle-color-mode-button" title="toggle color mode"><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button><!----></div></header><!--]--><div class="sidebar-mask"></div><!--[--><aside class="sidebar"><nav class="navbar-items"><!--[--><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net" rel="noopener noreferrer" target="_blank" aria-label="官网"><!--[--><!--]--> 官网 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net/sdd.html" rel="noopener noreferrer" target="_blank" aria-label="思多多"><!--[--><!--]--> 思多多 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net/wdd.html" rel="noopener noreferrer" target="_blank" aria-label="维多多"><!--[--><!--]--> 维多多 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net/xzs.html" rel="noopener noreferrer" target="_blank" aria-label="学之思"><!--[--><!--]--> 学之思 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net/buy.html" rel="noopener noreferrer" target="_blank" aria-label="商业购买"><!--[--><!--]--> 商业购买 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><!--]--></nav><!--[--><!--]--><ul class="sidebar-items"><!--[--><li><p tabindex="0" class="sidebar-item sidebar-heading active"> <!----></p><ul style="" class="sidebar-item-children"><!--[--><li><a href="/guide/feature.html" class="sidebar-item" aria-label="1. 功能列表"><!--[--><!--]--> 1. 功能列表 <!--[--><!--]--></a><!----></li><li><a href="/guide/skill.html" class="sidebar-item" aria-label="2. 技术栈"><!--[--><!--]--> 2. 技术栈 <!--[--><!--]--></a><!----></li><li><a href="/guide/database.html" class="sidebar-item" aria-label="3. 数据库设计"><!--[--><!--]--> 3. 数据库设计 <!--[--><!--]--></a><!----></li><li><p tabindex="0" class="sidebar-item">4. 接口文档 <!----></p><ul style="" class="sidebar-item-children"><!--[--><li><a href="/guide/student.html" class="sidebar-item" aria-label="4.1 学生端"><!--[--><!--]--> 4.1 学生端 <!--[--><!--]--></a><!----></li><li><a href="/guide/wx.html" class="sidebar-item" aria-label="4.2 小程序"><!--[--><!--]--> 4.2 小程序 <!--[--><!--]--></a><!----></li><li><a href="/guide/admin.html" class="sidebar-item" aria-label="4.3 管理端"><!--[--><!--]--> 4.3 管理端 <!--[--><!--]--></a><!----></li><!--]--></ul></li><li><a href="/guide/develop.html" class="sidebar-item" aria-label="5. 项目开发"><!--[--><!--]--> 5. 项目开发 <!--[--><!--]--></a><!----></li><li><a href="/guide/deploy.html" class="sidebar-item" aria-label="6. 项目部署"><!--[--><!--]--> 6. 项目部署 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/guide/video.html" class="router-link-active router-link-exact-active router-link-active sidebar-item active" aria-label="7. 视频教程"><!--[--><!--]--> 7. 视频教程 <!--[--><!--]--></a><ul style="" class="sidebar-item-children"><!--[--><li><a aria-current="page" href="/guide/video.html#_7-1-基础软件安装" class="router-link-active router-link-exact-active sidebar-item" aria-label="7.1 基础软件安装"><!--[--><!--]--> 7.1 基础软件安装 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/guide/video.html#_7-2-本地代码调试运行" class="router-link-active router-link-exact-active sidebar-item" aria-label="7.2 本地代码调试运行"><!--[--><!--]--> 7.2 本地代码调试运行 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/guide/video.html#_7-3-微信小程序开发" class="router-link-active router-link-exact-active sidebar-item" aria-label="7.3 微信小程序开发"><!--[--><!--]--> 7.3 微信小程序开发 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/guide/video.html#_7-4-代码配置介绍" class="router-link-active router-link-exact-active sidebar-item" aria-label="7.4 代码配置介绍"><!--[--><!--]--> 7.4 代码配置介绍 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/guide/video.html#_7-5-win系统部署" class="router-link-active router-link-exact-active sidebar-item" aria-label="7.5 win系统部署"><!--[--><!--]--> 7.5 win系统部署 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/guide/video.html#_7-6-centos系统部署" class="router-link-active router-link-exact-active sidebar-item" aria-label="7.6 CentOS系统部署"><!--[--><!--]--> 7.6 CentOS系统部署 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/guide/video.html#_7-7-宝塔面板部署考试系统" class="router-link-active router-link-exact-active sidebar-item" aria-label="7.7 宝塔面板部署考试系统"><!--[--><!--]--> 7.7 宝塔面板部署考试系统 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/guide/video.html#_7-8-使用手册" class="router-link-active router-link-exact-active sidebar-item" aria-label="7.8 使用手册"><!--[--><!--]--> 7.8 使用手册 <!--[--><!--]--></a><!----></li><!--]--></ul></li><!--]--></ul></li><!--]--></ul><!--[--><!--]--></aside><!--]--><!--[--><main class="page"><!--[--><!--]--><div class="theme-default-content"><!--[--><!--]--><div><h1 id="_7-视频教程" tabindex="-1"><a class="header-anchor" href="#_7-视频教程" aria-hidden="true">#</a> 7. 视频教程</h1><h3 id="_7-1-基础软件安装" tabindex="-1"><a class="header-anchor" href="#_7-1-基础软件安装" aria-hidden="true">#</a> 7.1 基础软件安装</h3><ul><li>打开学之思开源仓库地址:<a href="https://gitee.com/mindskip/xzs-mysql" target="_blank" rel="noopener noreferrer">https://gitee.com/mindskip/xzs-mysql<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></li><li>下载数据库脚本<a href="https://www.mindskip.net:999" target="_blank" rel="noopener noreferrer">https://www.mindskip.net:999<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></li><li>工具介绍</li></ul><div class="language-软件简介 ext-软件简介 line-numbers-mode"><pre class="language-软件简介"><code> ideaIU-2020.3.3 java开发工具
mysql-installer-community-8.0.19.0 Mysql数据库安装包
navicat150_mysql_cs_x64 Mysql数据库连接工具
WebStorm-2020.3.3: 前端开发工具
jdk-8u241-windows-x64java运行环境
node-v12.16.1-x64:前端vue运行环境
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><ul><li>工具安装</li><li>所有准备工具安装已结束,下一步是调试开发环境</li><li>哔哩哔哩:<a href="https://www.bilibili.com/video/BV1rp4y1b7Se" target="_blank" rel="noopener noreferrer">https://www.bilibili.com/video/BV1rp4y1b7Se<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></li></ul><h3 id="_7-2-本地代码调试运行" tabindex="-1"><a class="header-anchor" href="#_7-2-本地代码调试运行" aria-hidden="true">#</a> 7.2 本地代码调试运行</h3><ul><li>打开仓库地址 <a href="https://gitee.com/mindskip/xzs-mysql" target="_blank" rel="noopener noreferrer">https://gitee.com/mindskip/xzs-mysql<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a> ,下载源代码</li><li>打开教学文档 <a href="https://www.mindskip.net:999/guide/develop.html" target="_blank" rel="noopener noreferrer">https://www.mindskip.net:999/guide/develop.html<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></li><li>修改java的镜像,改为阿里云镜像,默认是国外的,速度比较慢。默认是没有.m2文件夹的,可以自己新建一个。</li><li>打开数据库连接工具,导入mysql脚本</li><li>打开java代码,等待组件自动下载完成即可启动</li><li>添加sdk,建议使用1.8</li><li>启动后端程序</li><li>修改下配置文件,我们是本地连接,需要改下数据库连接地址</li><li>再打开教程,开始启动前端开发工具</li><li>前端依赖组件默认也是国外的,可按教程修为成国内的</li><li>组件下载完成,执行运行命令</li><li>学生前端也同样操作,启动</li><li>建议先将package-lock.json文件删掉,再执行npm install命令</li><li>前后端都已启动完成</li><li>哔哩哔哩:<a href="https://www.bilibili.com/video/BV1Qh411S7RY" target="_blank" rel="noopener noreferrer">https://www.bilibili.com/video/BV1Qh411S7RY<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></li></ul><h3 id="_7-3-微信小程序开发" tabindex="-1"><a class="header-anchor" href="#_7-3-微信小程序开发" aria-hidden="true">#</a> 7.3 微信小程序开发</h3><ul><li>去官网下载小程序开发工具,并安装</li><li>去微信小程序官网 (微信公众平台),创建小程序</li><li>登录成功后,点击左边菜单开发下面的开发管理,在点击开发设置</li><li>拿到appId、AppSecret后配置到代码中</li><li>修改代码配置后,重新启动后台程序</li><li>打开微信开发工具,导入微信小程序代码</li><li>微信接口默认是<a href="http://localhost:8000" target="_blank" rel="noopener noreferrer">http://localhost:8000<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a>,默认就可以了,和后端端口保持一致</li><li>启动后需要修改appid,和代码中的保持一致</li><li>微信小程序就启动成功了</li><li>哔哩哔哩:<a href="https://www.bilibili.com/video/BV1mK4y127C5" target="_blank" rel="noopener noreferrer">https://www.bilibili.com/video/BV1mK4y127C5<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></li></ul><h3 id="_7-4-代码配置介绍" tabindex="-1"><a class="header-anchor" href="#_7-4-代码配置介绍" aria-hidden="true">#</a> 7.4 代码配置介绍</h3><ul><li>下面介绍下常用的配置</li><li>后端配置主要在 yml 文件中</li><li>七牛云配置完成后,测试一下,重新启动,加载配置文件</li><li>图片替换成功,说明七牛云配置是ok的</li><li>application-prod.yml 用于正式环境的配置,和dev基本是一样的</li><li>学生端vue配置</li><li>管理端vue配置</li><li>微信小程序配置</li><li>配置都已经介绍完毕</li><li>哔哩哔哩:<a href="https://www.bilibili.com/video/BV19V411n7XV" target="_blank" rel="noopener noreferrer">https://www.bilibili.com/video/BV19V411n7XV<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></li></ul><h3 id="_7-5-win系统部署" tabindex="-1"><a class="header-anchor" href="#_7-5-win系统部署" aria-hidden="true">#</a> 7.5 win系统部署</h3><ul><li>下面介绍下在win平台下怎么部署学之思,包含win所有平台</li><li>先预装好下面软件,不会的可以看第一部分视频</li></ul><div class="language-软件简介 ext-软件简介 line-numbers-mode"><pre class="language-软件简介"><code> mysql-installer-community-8.0.19.0 Mysql数据库安装包
navicat150_mysql_cs_x64 Mysql数据库连接工具
jdk-8u241-windows-x64java运行环
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><ul><li>按文档教程中的项目部署操作来</li><li>首先展示集成部署</li><li>这个jar包就是打包之后的运行程序,我们使用命令运行</li></ul><div class="language-运行命令 ext-运行命令 line-numbers-mode"><pre class="language-运行命令"><code> java -Duser.timezone=Asia/Shanghai -jar -Dspring.profiles.active=prod xzs-3.9.0.jar
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><ul><li>访问成功,说明部署没问题</li><li>下面我们看下前后的分离部署,需要安装nginx</li><li>访问localhost,看到这个页面就说nginx启动没问题</li><li>配置学之思</li><li>先启动后端程序</li><li>再修改前端配置,启动前端程序,访问地址没问题,就说明部署成功了</li><li>这里需要注意两点:</li><li><ol><li>8001端口默认是微信开发工具的启动端口,建议先关闭微信开发工具,再启动nginx</li></ol></li><li><ol start="2"><li>root C:/xzs/release/web; 这里的路径要填反斜杠,不能直接用win的复制路径</li></ol></li><li>win系统部署结束</li><li>哔哩哔哩:<a href="https://www.bilibili.com/video/BV1XA41157P4" target="_blank" rel="noopener noreferrer">https://www.bilibili.com/video/BV1XA41157P4<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></li></ul><h3 id="_7-6-centos系统部署" tabindex="-1"><a class="header-anchor" href="#_7-6-centos系统部署" aria-hidden="true">#</a> 7.6 CentOS系统部署</h3><ul><li>下载好xshell和xftp,这个工具用于连接centos服务器的</li><li>可在群文件中找到Xftp-7.0.0063p 和 Xshell-7.0.0065p ,直接安装</li><li>打开xshell , 连接准备好的centos服务器</li><li>服务器中要安装好 mysql 8 、jdk 1.8、nginx , 可以自行搜索教程进行安装</li><li>安装好后,我们检测下是否都在运行</li><li>创建数据库xzs、导入xzs-mysql.sql脚本</li><li>登录mysql,执行导入命令:</li></ul><div class="language-脚本导入命令 ext-脚本导入命令 line-numbers-mode"><pre class="language-脚本导入命令"><code> mysql -u root -p -D xzs &lt; /usr/local/xzs/sql/xzs-mysql.sql
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><ul><li>数据导入成功后,可以登录mysql数据库,检查一下是否成功</li><li>打包jar文件,注意修改配置文件application-prod.yml ,正式环境用的这个文件,这里里面的数据库连接地址和账号等,由于都是服务器本地的,都用localhost即可</li><li>上传jar包到服务器中</li><li>启动学之思后端程序</li></ul><div class="language-运行命令 ext-运行命令 line-numbers-mode"><pre class="language-运行命令"><code> nohup java -Duser.timezone=Asia/Shanghai -jar -Dspring.profiles.active=prod xzs-3.9.0.jar &gt; start1.log 2&gt;&amp;1 &amp;
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><ul><li>打开浏览器,检查是否启动成功</li><li>集成部署已经完成,下面介绍下前后端分离部署,分离部署前端页面要放在nginx中,需要配置nginx</li><li>上传成功后配置nginxnginx默认配置目录为 /etc/nginx/conf.d ,在里面新建xzs.conf配置文件即可</li><li>执行命令:nginx -s reload ,重新加载nginx配置文件</li><li>在浏览器中能访问成功说明部署正确</li><li>docker部署,先安装好docker</li><li>执行教程中的命令,下载镜像,运行容器</li><li>打开浏览器验证下是否能访问,访问成功表示docker版运行正常</li><li>哔哩哔哩:<a href="https://www.bilibili.com/video/BV17b4y1D7Re" target="_blank" rel="noopener noreferrer">https://www.bilibili.com/video/BV17b4y1D7Re<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></li></ul><h3 id="_7-7-宝塔面板部署考试系统" tabindex="-1"><a class="header-anchor" href="#_7-7-宝塔面板部署考试系统" aria-hidden="true">#</a> 7.7 宝塔面板部署考试系统</h3><ul><li>打开宝塔,查看linux教程,安装教程安装好宝塔</li><li>登录宝塔</li><li>安装基础软件:mysql8 、 java8 、nginx 等常用软件</li><li>导入sql脚本和考试系统安装包</li><li>这里注意下数据库用户名、密码、名称要和mysql的保持一致</li><li>打包java程序</li><li>启动考试系统</li><li>开启端口:8000</li><li>集成部署成功</li><li>哔哩哔哩:<a href="https://www.bilibili.com/video/BV19M4y1K7uc" target="_blank" rel="noopener noreferrer">https://www.bilibili.com/video/BV19M4y1K7uc<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></li></ul><h3 id="_7-8-使用手册" tabindex="-1"><a class="header-anchor" href="#_7-8-使用手册" aria-hidden="true">#</a> 7.8 使用手册</h3><ul><li>用户管理:学生添加、管理员添加</li><li>题目管理:添加题目、单选题、多选题、判断题、填空题、解答题</li><li>教育管理:添加学科</li><li>试卷管理:添加试卷 固定试卷 时段试卷 任务试卷</li><li>任务管理:添加任务</li><li>消息管理:消息发送</li><li>成绩管理:查看成绩</li><li>哔哩哔哩:<a href="https://www.bilibili.com/video/BV1884y1F71Y" target="_blank" rel="noopener noreferrer">https://www.bilibili.com/video/BV1884y1F71Y<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></li></ul></div><!--[--><!--]--></div><footer class="page-meta"><!----><div class="meta-item last-updated"><span class="meta-item-label">Last Updated: </span><!----></div><div class="meta-item contributors"><span class="meta-item-label">Contributors: </span><span class="meta-item-info"><!--[--><!--[--><span class="contributor" title="email: mindskip@qq.com">mindskip</span><!--[-->, <!--]--><!--]--><!--[--><span class="contributor" title="email: mindskip@qq.com">思维跳跃科技</span><!----><!--]--><!--]--></span></div></footer><nav class="page-nav"><p class="inner"><span class="prev"><a href="/guide/deploy.html" class="" aria-label="6. 项目部署"><!--[--><!--]--> 6. 项目部署 <!--[--><!--]--></a></span><!----></p></nav><!--[--><!--]--></main><!--]--></div><!----><!--]--></div>
<script type="module" src="/assets/app.d68faa27.js" defer></script>
</body>
</html>