<html>
<head>
<title>Evernote Export</title>
<basefont face="微软雅黑" size="2" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="exporter-version" content="YXBJ Windows/600753 (zh-CN, DDL); Windows/10.0.0 (Win64);"/>
<meta name="content-class" content="yinxiang.markdown"/>
<style>
body, td {
font-family: 微软雅黑;
font-size: 10pt;
}
</style>
</head>
<body>
<a name="20788"/>
<div><span><div style="font-size: 14px; margin: 0; padding: 0; width: 100%;"><h1 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 41px; border-bottom: 3px double #999; color: #000; margin-top: 14px;">BladeX-Boot部署-基于宝塔Linux</h1>
<div style="line-height: 160%; box-sizing: content-box;"><ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333;"><li style="line-height: 160%; box-sizing: content-box; position: relative;"><a style="line-height: 160%; box-sizing: content-box; text-decoration: underline; color: #5286bc;">BladeX-Boot部署-基于宝塔Linux
</a><ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;"><li style="line-height: 160%; box-sizing: content-box; position: relative;"><a style="line-height: 160%; box-sizing: content-box; text-decoration: underline; color: #5286bc;">1.环境
</a><ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;"><li style="line-height: 160%; box-sizing: content-box; position: relative;"><a style="line-height: 160%; box-sizing: content-box; text-decoration: underline; color: #5286bc;">1.1 前置:
</a></li><li style="line-height: 160%; box-sizing: content-box; position: relative;"><a style="line-height: 160%; box-sizing: content-box; text-decoration: underline; color: #5286bc;">1.2 搭建过程
</a></li></ul></li><li style="line-height: 160%; box-sizing: content-box; position: relative;"><a style="line-height: 160%; box-sizing: content-box; text-decoration: underline; color: #5286bc;">2.前端工程
</a><ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;"><li style="line-height: 160%; box-sizing: content-box; position: relative;"><a style="line-height: 160%; box-sizing: content-box; text-decoration: underline; color: #5286bc;">2.1打包部署
</a></li><li style="line-height: 160%; box-sizing: content-box; position: relative;"><a style="line-height: 160%; box-sizing: content-box; text-decoration: underline; color: #5286bc;">2.2nginx运行以及转发转发
</a></li></ul></li><li style="line-height: 160%; box-sizing: content-box; position: relative;"><a style="line-height: 160%; box-sizing: content-box; text-decoration: underline; color: #5286bc;">3.后端工程
</a><ul style="line-height: 160%; box-sizing: content-box; display: block; list-style-type: disc; padding-left: 30px; margin: 6px 0 10px; color: #333; margin-top: 0; margin-bottom: 0;"><li style="line-height: 160%; box-sizing: content-box; position: relative;"><a style="line-height: 160%; box-sizing: content-box; text-decoration: underline; color: #5286bc;">3.1打包部署
</a></li><li style="line-height: 160%; box-sizing: content-box; position: relative;"><a style="line-height: 160%; box-sizing: content-box; text-decoration: underline; color: #5286bc;">3.2调试运行-自行选择
</a></li></ul></li><li style="line-height: 160%; box-sizing: content-box; position: relative;"><a style="line-height: 160%; box-sizing: content-box; text-decoration: underline; color: #5286bc;">4.其他补充事项
</a></li></ul></li></ul></div><h2 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 34px; border-bottom: 1px solid #dbdbdb; color: #333;">1.环境</h2>
<h4 style="line-height: 160%; box-sizing: content-box; font-size: 20px; color: #333;">1.1 前置:</h4>
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">本部署环境基于centos7部署,先保证是纯净的linux环境,未配置任何mysql、redis、nginx环境。</p>
<h4 style="line-height: 160%; box-sizing: content-box; font-size: 20px; color: #333;">1.2 搭建过程</h4>
<ol style="line-height: 160%; box-sizing: content-box; display: block; padding-left: 30px; margin: 6px 0 10px; color: #333; list-style-type: decimal;">
<li style="line-height: 160%; box-sizing: content-box;">宝塔搭建 http://www.bt.cn/download/linux.html</li>
<li style="line-height: 160%; box-sizing: content-box;">软件安装-Nginx(配置见前端过程) Mysql Redis<br/>
<img src="19BladeX-Boot部署-基于宝塔Linux_files/Image.png" type="image/png" data-filename="Image.png"/></li>
<li style="line-height: 160%; box-sizing: content-box;">注意放行 相关的端口<br/>
<img src="19BladeX-Boot部署-基于宝塔Linux_files/Image [1].png" type="image/png" data-filename="Image.png"/></li>
</ol>
<h2 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 34px; border-bottom: 1px solid #dbdbdb; color: #333;">2.前端工程</h2>
<h4 style="line-height: 160%; box-sizing: content-box; font-size: 20px; color: #333;">2.1打包部署</h4>
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">打包命令:npm run build<br/>
打包完的目录结构:<img src="19BladeX-Boot部署-基于宝塔Linux_files/Image [2].png" type="image/png" data-filename="Image.png"/></p>
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">丢到服务器对应Nginx目录下的html文件夹</p>
<h4 style="line-height: 160%; box-sizing: content-box; font-size: 20px; color: #333;">2.2nginx运行以及转发转发</h4>
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">注意:宝塔的nginx的主配置文件,不建议修改。主配置文件中最后一行代码为包含其他配置。因此我们需要在对应的目录下建相关配置文件。主配置如下:<br/>
<img src="19BladeX-Boot部署-基于宝塔Linux_files/Image [3].png" type="image/png" data-filename="Image.png"/><br/>
进入包含配置目录,并新建自己需要的转发配置。<br/>
<img src="19BladeX-Boot部署-基于宝塔Linux_files/Image [4].png" type="image/png" data-filename="Image.png"/><br/>
具体配置项如下:<br/>
<img src="19BladeX-Boot部署-基于宝塔Linux_files/Image [5].png" type="image/png" data-filename="Image.png"/></p>
<p style="line-height: 160%; box-sizing: content-box; margin: 10px 0; color: #333;">方便CPOY:</p>
<pre style="line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; margin: 2px 0 8px; background-color: #f5f7f8;"><code style="display: block; overflow-x: auto; background: #1e1e1e; line-height: 160%; box-sizing: content-box; border: 0; border-radius: 0; letter-spacing: -.3px; padding: 18px; color: #f4f4f4; white-space: pre-wrap;">server {
listen saber允许端口;
server_name 127.0.0.1;
location / {
root html;
index index.html index.htm;
}
#这里对应后端的服务地址
location /api {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:Bladex-boot转发的端口/;
}
}
</code></pre>
<h2 style="line-height: 160%; box-sizing: content-box; font-weight: 700; font-size: 34px; border-bottom: 1px solid #dbdbdb; color: #333;">3.后端工程</h2>
<h3 style="line-height: 160%; box-s
没有合适的资源?快使用搜索试试~ 我知道了~
Blade-Boot部署-基于宝塔linux
共8个文件
png:7个
html:1个
需积分: 5 0 下载量 196 浏览量
2023-02-06
10:11:30
上传
评论
收藏 290KB ZIP 举报
温馨提示
基于blade项目的不是流程,基于宝塔Linux,干活慢慢
资源推荐
资源详情
资源评论
收起资源包目录
BladeX-Boot部署-基于宝塔Linux.zip (8个子文件)
19BladeX-Boot部署-基于宝塔Linux_files
Image [6].png 71KB
Image [4].png 23KB
Image [1].png 20KB
Image [5].png 28KB
Image [2].png 11KB
Image [3].png 94KB
Image.png 87KB
19BladeX-Boot部署-基于宝塔Linux.html 15KB
共 8 条
- 1
资源评论
休以希
- 粉丝: 11
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 教学内容及补充-cha7.rar
- 设计1.ms14
- vscode-1.64.1.tar源码文件
- vscode-1.64.0.tar源码文件
- vscode-1.52.0.tar源码文件
- Music-Player +PlayerActivity+ rockplayer+ SeeJoPlayer 播放器JAVA源码
- vscode-1.46.0.tar源码文件
- 最近很火植物大战僵尸杂交版2.08苹果+安卓+PC+防闪退工具V2+修改工具+高清工具+通关存档整合包更新
- 超级好用的截图工具PixPin,可录制Gif图
- Screenshot_2024-05-21-17-06-42-64_2332cb9b27b851b548ba47a91682926c.jpg
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功