2.3 手动安装 - ise.thss.tsinghua.edu.cn

15
2.3 手动安装 安装前的确认工作 (一)硬件要求 DWF应用开发平台对硬件要求如下(空缺内容表示没有最低要求,但是需要根据项目的性能要求指定): 类型 最小配置 推荐配置 备注 CPU 4 core 内存 8 GB 16GB 如果使用代码装配功能,需要至少16GB+ 磁盘 操作系统 Ubuntu 发行版本18.04 Centos 发行版本7.6 网络 千兆网络 (二)浏览器要求 DWF应用开发平台对浏览器要求如下。 (1)Firefox/63.0。 (2)Edge 44.17以上。 (3)Chrome 70.0.3538.77。 (三)操作系统要求 DWF应用开发平台对基础软件环境如下: JDK 1.8, 后端jar包运行依赖。 Node 10.16或者以上版本,前端控件开发依赖。 Python 3或者以上版本,高级开发配套脚本依赖。 tomcat 8 或者以上版本,通用Web服务,作为前端war包运行依赖。 PostgreSQL 9.5数据库服务器或者以上版本,DWF模型存放和应用运行后客户数据管理维护。 (四)平台安装文件 (1)2个后端服务相应Jar包。 (2)3个前端服务相应War包(web文件夹)。 (3)配置文件application.properties。 (4)*.sql 平台数据源文件。 (5)其他附属文件。 安装文件及所在目录如下。***需单独邀请发送 序号 文件夹名 文件名 文件类型 说明 1 deployfiles db-pure.sql 初始数据库 2 deployfiles application.properties 配置文件 3 deployfiles dwf-app-1.0-SNAPSHOT.jar 程序文件 App后台接口 4 deployfiles dwf-modeler-1.0-SNAPSHOT.jar 程序文件 Modeler后台接口 5 deployfiles dwf-monitor-1.0-SNAPSHOT.jar 程序文件 Monitor后台接口 5 web modeler-web 程序文件 建模端web页面程序 6 web app-web 程序文件 应用端web页面程序 7 web helps 帮助手册

Upload: others

Post on 28-Mar-2022

7 views

Category:

Documents


0 download

TRANSCRIPT


DWF
JDK 1.8, jar Node 10.16 Python 3 tomcat 8 Web,war PostgreSQL 9.5DWF

2Jar
1 deployfiles db-pure.sql
2 deployfiles application.properties
7 web helps
DWF

2JDK
3JDK
java -version
Tomcat
/opt/apache-tomcat/bin/startup.sh tomcat( /opt/apache-tomcat/bin/shutdown.sh)
http://IP:8180 http://192.168.1.137:8180
3
sudo -u postgres /usr/lib/postgresql/10/bin/psql -d postgres -w -c "ALTER USER postgres WITH SUPERUSER PASSWORD '123456'"
-u postgres /usr/lib/postgresql/10/bin/psql -d postgres -w -c sudo "CREATE DATABASE dataway OWNER postgres"
4
5
6

1dwfpg
2dwf

3node(npm)
4node
node -v
npm -v
Maven
1Maven
2maven
source /ets/profile
4maven
mvn -v

1
2wartomcat
# Custom properties =adminadmin.name
# auth auth.provider=edu.thss.platform.security.jwt.JwtAuthenticationProvider auth.tokenprocessor=edu.thss.platform.security.jwt.JwtTokenProcessorImpl #auth.provider=edu.thss.platform.security.tianyuan.TianYuanAuthenticationProvider #auth.tokenprocessor=edu.thss.platform.security.tianyuan.TianYuanTokenProcessorImpl auth.params.username=username auth.params.password=password
# external configs (should start with "external.appConfig.") external.appConfig.demoKey=demoValue external.appConfig.demoKey.with.dots=value external.appConfig.maxFileSizeKb=512000 external.appConfig.roleGroup=
#----------------------------------------------- # Cloud iBPM build time data storage (repository). # Configuration: MySQL # jdbc driver package installed. db.product=Postgresql db.jdbc.driverClassName=org.postgresql.Driver # local host # 2 db.jdbc.initialSize=10 # 60000/100060 db.jdbc.maxWait=10000 # db.jdbc.maxActive=10 # db.jdbc.maxIdle=10 # db.jdbc.minIdle=3 # db.jdbc.logAbandoned=true # db.jdbc.removeAbandoned=true # () db.jdbc.removeAbandonedTimeout=10 db.jdbc.poolPreparedStatements=true db.jdbc.testOnBorrow=true # db.jdbc.validationQuery=SELECT 1 FROM DUAL db.jdbc.validationQuery=select version()
#---------------------------------------- # administrator company ID, e.g., Xuan QI Company ID
=00000000000001Radmin.corp.id
#----------------------------------------- # File server info #file.server.domainname=http://localhost:8080/file/ file.server.domainname=http://101.200.154.42:8080/file/ # API server info api.server.domainname=http://192.168.1.81:6060 #api.server.domainname=http://localhost:6060 #api.server.domainname=http://localhost:8088/api/
# 1: standalone; # 2: private cloud; # 3: public cloud; xq.product.pversion=1
# auth .tree = falsedwf.cache.org
#!/bin/bash #,root # Tomcat_INSTALL_DIR="/opt/apache-tomcat" DWF_INSTALL_DIR="/opt/dwf3.0-deploy"
tomcat_process=`ps -ef |grep -w tomcat|grep -v grep|wc -l` if [ "$tomcat_process" -ne "0" ]; then echo "Tomcat" else #tomcat sudo nohup ${Tomcat_INSTALL_DIR}/bin/startup.sh & fi
pg_process=`ps -ef |grep -w postgres|grep -v grep|wc -l` if [ "$pg_process" -ne "0" ]; then echo "Postgres" else #postgres sudo -u postgres /usr/lib/postgresql/10/bin/pg_ctl restart -D /var/lib/postgresql/10/main fi
#DWF cd ${DWF_INSTALL_DIR}
monitor_process=`ps -ef |grep -w dwf-monitor|grep -v grep|wc -l` if [ "$monitor_process" -ne "0" ]; then ps aux | grep "dwf-monitor" | grep -v "grep" | awk '{print $2}' | xargs kill -9 else echo "dwf-monitordwf-monitor..." fi nohup java -Dlogging.file=${DWF_INSTALL_DIR}/dwf-monitor.log -jar ${DWF_INSTALL_DIR}/*dwf-monitor*.jar --server.port=7070 --spring. config.location=${DWF_INSTALL_DIR}/application.properties > /dev/null 2>&1 &
modeler_process=`ps -ef |grep -w dwf-modeler|grep -v grep|wc -l` if [ "$modeler_process" -ne "0" ]; then ps aux | grep "dwf-modeler" | grep -v "grep" | awk '{print $2}' | xargs kill -9 else echo "dwf-modelerdwf-modeler..." fi nohup java -Dlogging.file=${DWF_INSTALL_DIR}/dwf-modeler.log -jar ${DWF_INSTALL_DIR}/*dwf-modeler*.jar --server.port=6060 --spring. config.location=${DWF_INSTALL_DIR}/application.properties > /dev/null 2>&1 &
app_process=`ps -ef |grep -w dwf-app|grep -v grep|wc -l` if [ "$app_process" -ne "0" ]; then ps aux | grep "dwf-app" | grep -v "grep" | awk '{print $2}' | xargs kill -9 else echo "dwf-appdwf-app..." fi nohup java -Dlogging.file=${DWF_INSTALL_DIR}/dwf-app.log -jar ${DWF_INSTALL_DIR}/*dwf-app*.jar --server.port=9090 --spring.config. location=${DWF_INSTALL_DIR}/application.properties > /dev/null 2>&1 &
echo "DWF!:http://IP:8180/modeler-web"
: http://192.168.1.137:8180/modeler-web
http://192.168.1.137:8180/app-web