File tree Expand file tree Collapse file tree 3 files changed +21
-12
lines changed
lcapServer/changelog/scripts Expand file tree Collapse file tree 3 files changed +21
-12
lines changed Original file line number Diff line number Diff line change 5050| nginx | 1.20.1 |
5151
5252### 开放端口
53- | 服务台 | 端口 |
54- | ----- | ------ |
55- | 平台界面 | 8089 |
56- | Code-Server | 8081 |
57- | 开发界面 | 7001 |
53+
54+ | 服务台 | 端口 |
55+ | ----------------------------------- | ---- |
56+ | FlyfishWeb 端口(nginx 静态资源代理) | 8089 |
57+ | FlyfishCodeServer(在线编辑器)端口 | 8081 |
58+ | FlyfishServer(主后端服务)端口 | 7001 |
5859
5960### 部署流程
6061
6162> 推荐使用 doc 目录内 flyfish 部署文档,后续有关部署流程、学习资料、FAQ 等统一放置 doc 目录中管理。
6263
6364- [ 01-基础环境准备篇] ( ./doc/01-基础环境准备篇.md )
64- - [ 02-FlyFish平台部署篇] ( ./doc/02-FlyFish平台部署篇.md )
65- - [ 03-code_server部署篇] ( ./doc/03-code_server部署篇.md )
65+ - [ 02-FlyFish 平台部署篇] ( ./doc/02-FlyFish平台部署篇.md )
66+ - [ 03-code_server 部署篇] ( ./doc/03-code_server部署篇.md )
67+
68+ > 或执行一键脚本:
6669
67- > 或执行一键脚本:
6870``` bash
6971# CentOS 7.5/7.6 x86-64
7072# 须使用root账户
7173mkdir -p /data/app/
7274cd /data/app/
7375
7476git clone -b main https://github.com/CloudWise-OpenSource/FlyFish.git FlyFish
75- or
77+ or
7678git clone -b main https://gitee.com/CloudWise/fly-fish.git FlyFish
7779
7880cd /data/app/FlyFish
Original file line number Diff line number Diff line change @@ -112,7 +112,10 @@ deploy_flyfish_web() {
112112
113113 # 提示缺少 conf.d
114114 cd /
115- mkdir /etc/nginx/conf.d
115+ tempPath=" /etc/nginx/conf.d"
116+ if [ ! -d " $tempPath " ]; then
117+ mkdir $tempPath
118+ fi
116119 cd /data/app/FlyFish/lcapWeb
117120
118121 cp FlyFish-2.1.0.conf /etc/nginx/conf.d/FlyFish-2.1.0.conf
@@ -182,6 +185,9 @@ stop_flyfish() {
182185 echo " 停止运行FlyFish前端:"
183186 systemctl stop nginx
184187
188+ cd ~
189+ source nvm/nvm.sh
190+
185191 echo " 停止运行FlyFish后端:"
186192 cd /data/app/FlyFish/lcapServer/
187193 npm run stop
@@ -193,11 +199,12 @@ stop_flyfish() {
193199}
194200
195201remove_system () {
196- echo " 开始移除基础环境:nginx mongodb pm2 node.js nvm git "
202+ echo " 开始移除基础环境:nginx mongodb pm2 node.js nvm"
197203
198204 echo " start uninstall nginx"
199205 # systemctl stop nginx
200- chkconfig nginx off
206+ # chkconfig nginx off
207+ systemctl disable nginx.service
201208 yum remove nginx -y
202209 rm -rf /usr/sbin/nginx
203210 rm -rf /etc/nginx
File renamed without changes.
You can’t perform that action at this time.
0 commit comments