linux下如何安装h3bpm 本文主要是避坑 请先仔细阅读注意事项 否则会导致引擎连接失败
注意事项
- 本文以10.7.7为例 官方地址可以下载
- 下载包内包含了:JDK8、nginx、zookeeper、Tomcat7(webapi服务)
- 需安装redis 配置文件在h3bpm-portal/application-local.yml中
- mysql需设置不区分大小写,且需使用5.7版本的mysql,否则会导致引擎连接失败
- 必备列表为:mysql5.7、redis、ningx
安装过程
-
总统目录结构
├── dist.zip 移动端部署包
├── frontend.zip pc端部署包
├── h3bpm-cas cas集成
├── h3bpm-engine 引擎包
├── h3bpm-portal portal包
├── jdk1.8.0_171 jdk包
├── nginx nginx安装及配置文件
├── oracle_driver oracle驱动
└── zookeeper-3.4.13 zookeeper启动包
2.h3bpm-engine目录
├── OThinker
├── Portal
├── h3bpm-engine.jar
├── h3bpm_datasource.properties
├── h3bpm_db_config.xml
├── h3bpm_engine.properties
├── h3lib
├── lib
├── logs
├── register.sh
├── shutdown.sh
└── startup.sh
3.h3bpm-portal目录
.
├── application-ksh.yml
├── application-local.yml
├── application.yml
├── h3bpm-portal-web-10.7.7-RELEASE.jar
├── startup.bat
└── startup.sh
配置文件修改
- 修改h3bpm-engine/h3bpm_db_config.xml 配置useSSL=false
2.修改h3bpm-portal/application-local.yml文件
server:
address: 0.0.0.0 #所有地址可以访问
port: 8083 # webapi访问地址
compression:
enabled: true
前端部署
server {
listen 80 default_server;
# 前端源码地址
root h3bpm-java-linux-10.7.7-release/frontend;
client_max_body_size 100M;
location / {
try_files $uri $uri/ /index.html;
expires 7d;
log_not_found off;
access_log off;
}
# 后台接口使用代理转发(非静态资源)
location ~* ^((?!\.png|\.jpg|\.gif|\.jpeg|\.js|\.html|\.htm|\.json|\.css|\.woff|\.ttf|\.otf|\.eot|\.svg|\.ico).)*$ {
proxy_pass http://localhost:8083;
}
# 文件上传使用后台临时图片
location ~* attached|Portal/TempImages|TempFiles {
proxy_pass http://localhost:8083;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
后台启动
- 确保数据库连接正常、redis连接正常
- 启动引擎 进入 进入h3bpm-engine下 运行 ./startup.sh
- 启动portal端 进入h3bpm-portal下 运行 ./startup.sh
- 出现上面截图字段 表示启动成功
- 启动输出日志可在startup.sh文件中进行修改
访问
访问nginx配置端口号/Portal/index.html#/platform/login
私信可发测试地址