mirror of
https://github.com/mindskip/xzs-mysql.git
synced 2026-08-28 19:12:15 +08:00
bug fix
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
}
|
||||
</script>
|
||||
<title>7. 视频教程 | 学之思教程</title><meta name="description" content="学之思开发部署教程">
|
||||
<link rel="modulepreload" href="/assets/app.fc758ed3.js"><link rel="modulepreload" href="/assets/video.html.41eb262f.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.64e30670.js"><link rel="prefetch" href="/assets/admin.html.a9e2ddb1.js"><link rel="prefetch" href="/assets/database.html.a2a17205.js"><link rel="prefetch" href="/assets/deploy.html.094c5d77.js"><link rel="prefetch" href="/assets/develop.html.3c67c05e.js"><link rel="prefetch" href="/assets/feature.html.c548af0b.js"><link rel="prefetch" href="/assets/skill.html.f47b2248.js"><link rel="prefetch" href="/assets/student.html.b2b0709d.js"><link rel="prefetch" href="/assets/wx.html.c37a7ba8.js"><link rel="prefetch" href="/assets/404.html.87f3b86c.js">
|
||||
<link rel="modulepreload" href="/assets/app.1baede43.js"><link rel="modulepreload" href="/assets/video.html.3c388297.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.54638889.js"><link rel="prefetch" href="/assets/admin.html.fbe6c19f.js"><link rel="prefetch" href="/assets/database.html.c82b8ea6.js"><link rel="prefetch" href="/assets/deploy.html.25a00e05.js"><link rel="prefetch" href="/assets/develop.html.f7dbd1bd.js"><link rel="prefetch" href="/assets/feature.html.76b398cf.js"><link rel="prefetch" href="/assets/skill.html.175f76e6.js"><link rel="prefetch" href="/assets/student.html.a17572ff.js"><link rel="prefetch" href="/assets/wx.html.6730d243.js"><link rel="prefetch" href="/assets/404.html.ee3b678d.js">
|
||||
<link rel="stylesheet" href="/assets/style.e2da3676.css">
|
||||
</head>
|
||||
<body>
|
||||
@@ -40,6 +40,6 @@
|
||||
</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 < /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 > start1.log 2>&1 &
|
||||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><ul><li>打开浏览器,检查是否启动成功</li><li>集成部署已经完成,下面介绍下前后端分离部署,分离部署前端页面要放在nginx中,需要配置nginx</li><li>上传成功后配置nginx,nginx默认配置目录为 /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.fc758ed3.js" defer></script>
|
||||
<script type="module" src="/assets/app.1baede43.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user