BPM-公有环境部署(Linux)
Posted lsw803
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了BPM-公有环境部署(Linux)相关的知识,希望对你有一定的参考价值。
1.验证jdk。如果没安装jdk参照文档:java工具1.安装jdklinux下JDK安装教程.docx
java -version #出现java version "1.8.0_144"字样,表示已安装jdk echo $JAVA_HOME #出现/data/jdk1.8.0_144字样,表示已配置JAVA_HOME
2.设置notepad++为Xftp的默认编辑器,防止乱码
3.创建data目录(data名称不能改)
mkdir -p /data
4.上传h3bpm-java-linux-10.7.3_release.tar.gz安装包到服务器data目录
5.解压
cd /data tar -zxvf h3bpm-java-linux-10.7.3_release.tar.gz
6.安装mysql数据库,并创建名称为h3bpm的数据库
7.配置引擎数据库连接地
8.启动引擎
cd /data/h3bpm-java-linux-10.7.3-release/h3bpm-engine ./startup.sh tail -300f ./logs/logs.txt
报错:
方法:将starup.sh中-Xms1024G改为1024M
9.nginx配置
a.安装
rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm yum install -y nginx
b.启动并设置开机启动
systemctl start nginx.service
systemctl enable nginx.service
c.查找nginx.conf安装位置,并修改文件
ps -ef | grep nginx
#user nobody; worker_processes 2; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; #log_format main ‘$remote_addr - $remote_user [$time_local] "$request" ‘ # ‘$status $body_bytes_sent "$http_referer" ‘ # ‘"$http_user_agent" "$http_x_forwarded_for"‘; #access_log logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; gzip on; #开启gzip gzip_min_length 1k; #低于1kb的资源不压缩 gzip_comp_level 3; #压缩级别【1-9】,越大压缩率越高,同时消耗cpu资源也越多,建议设置在4左右。 gzip_types text/plain application/javascript application/x-javascript text/javascript text/xml text/css; #需要压缩哪些响应类型的资源,多个空格隔开。不建议压缩图片,下面会讲为什么。 gzip_disable "MSIE [1-6]."; #配置禁用gzip条件,支持正则。此处表示ie6及以下不启用gzip(因为ie低版本不支持) gzip_vary on; #是否添加“Vary: Accept-Encoding”响应头 server { listen 80 default_server; server_name localhost; # 前端源码地址 root /data/h3bpm-java-linux-10.7.3-releasefrontend; client_max_body_size 100M; # Load configuration files for the default server block. #include /etc/nginx/default.d/*.conf; 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://47.98.49.203:8085; proxy_pass http://localhost:8083; } #文件上传使用后台临时图片 location ~* attached|Portal/TempImages|TempFiles { #proxy_pass http://47.98.49.203:8085; proxy_pass http://localhost:8086; } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } } # another virtual host using mix of IP-, name-, and port-based configuration # #server { # listen 8000; # listen somename:8080; # server_name somename alias another.alias; # location / { # root html; # index index.html index.htm; # } #} # HTTPS server # #server { # listen 443 ssl; # server_name localhost; # ssl_certificate cert.pem; # ssl_certificate_key cert.key; # ssl_session_cache shared:SSL:1m; # ssl_session_timeout 5m; # ssl_ciphers HIGH:!aNULL:!MD5; # ssl_prefer_server_ciphers on; # location / { # root html; # index index.html index.htm; # } #} }
d.停止服务并重新开启
systemctl stop nginx.service
systemctl start nginx.service
e.关闭防火墙
systemctl stop firewalld.service
f.解压frontend
#查看是否安装有 unzip 命令 unzip #如果出现 -bash: unzip: command not found,则使用yum进行安装 yum install -y unzip zip #继续完成解压 cd /data/h3bpm-java-linux-10.7.3-release mkdir -p ./frontend unzip frontend.zip -d ./frontend/
10.启动Portal
h3bpm-portal创建logs文件夹,并添加一个logs.txt文件
执行以下语句
cd /data/h3bpm-java-linux-10.7.3-release/h3bpm-portal ./startup.sh tail -300f ./logs/logs.txt
11.启动zookeeper
cd /data/h3bpm-java-linux-10.7.3-release/zookeeper-3.4.13/bin ./zkServer.sh start
查看状态
cd /data/h3bpm-java-linux-10.7.3-release/zookeeper-3.4.13/bin ./zkServer.sh status
访问虚拟机地址:http://192.168.31.135
以上是关于BPM-公有环境部署(Linux)的主要内容,如果未能解决你的问题,请参考以下文章
通过 BPM 将音轨分割成片段,并使用 Superpowered iOS 分析每个片段
在公有云AZURE上部署私有云AZUREPACK以及WEBSITE CLOUD