Skip to content

安装器命令行安装

下载安装程序到目标服务器上

平台提供了两种版本的安装器,您可以根据系统的版本选择相应的下载地址。

redhat7/centos7

https://repo.informat.cn/downloads/installer/centos/7/informat_next_installer_centos7_1.0.zip

redhat8/centos8

https://repo.informat.cn/downloads/installer/centos/8/informat_next_installer_centos8_1.0.zip

示例:下载redhat7/centos7的安装程序到目标服务器上

shell
curl -O https://repo.informat.cn/downloads/installer/centos/7/informat_next_installer_centos7_1.0.zip
shell
unzip informat_next_installer_centos7_1.0.zip

下载织信安装包

通过织信安装包源地址,获取对应版本的安装包链接地址。并下载到与informat_next_installer平级的目录下

shell
informat_next_dev.zip  informat_next_installer

示例:下载dev版本的织信安装包

shell
curl -O https://repo.informat.cn/downloads/packages/informat_next_dev.zip

修改配置文件config.properties

shell
cd informat_next_installer
vi config.properties

找到package-path=../informat_next_1.0.zip这一行

修改为真实安装包的文件名

package-path=../informat_next_dev.zip

配置文件config.properties参考下面的描述,选择性安装需要的组件。

默认会安装nginx、redis、minio、onlyoffice、rabbitmq、elasticsearch

命令行运行安装程序

确认配置后,命令行运行安装

shell
$ cd informat_next_installer
$ chmod +x ./jdk/bin/java

通过配置文件进行安装
$  ./jdk/bin/java -jar InformatNextInstaller-1.0.0.jar config.properties

配置文件config.properties参数说明

properties
linux.distribution=RedHat #linux发行版本
linux.distribution-version=7.9 #linux发行版本版本号

home-path=/informat-next #织信实例安装路径
package-path=../informat_next_1.0.zip #织信安装包所在路径
instance=true #是否需要安装织信服务程序,如果已经安装成功,只是需要重新安装数据库或其它组件,则设置为false
web-url=http://127.0.0.1/

# db
db.install=true #是否安装数据库
db.home-path=/data/pgsql #数据库数据存储路径
db.create-account=true #是否创建account数据库
db.create-biz=true #是否创建biz数据库
db.init-account=true #是否初始化account数据库(只需要在首次安装时,设置为true)
db.init-biz=true #是否初始化biz数据库(只需要在首次安装时,设置为true)
db.upgrade-account=true #是否需要升级account数据库
db.upgrade-biz=true #是否需要升级biz数据库
db.account.name=db_informat2_account_prd #account数据库名称
db.biz.name=db_informat2_biz_prd_0 #biz数据库名称
db.host=127.0.0.1 #数据库主机名称
db.port=5432 #数据库端口
db.user=postgres #数据库用户名
db.password=Informat-Next_#,.20221001 #数据库用户密码
db.opt-db-name=postgres #默认数据库
db.config-update=true #是否更新配置文件

# nginx
nginx.install=true #是否安装nginx
# dependency
nginx.install-pcre2=true #是否安装pcre2库
nginx.port=80 #设置nginx端口
nginx.server-name=_ #nginx服务名称
nginx.intranet-port=19881 #biz和account系统rpc通讯端口
nginx.intranet-url=http://127.0.0.1:19881/ #biz和account系统rpc通讯地址
nginx.certificate-path= #nginx证书路径
nginx.certificate-key-path= #nginx证书私钥路径
nginx.includes-conf-path=/etc/nginx/conf.d #nginx配置文件路径

# redis
redis.install=true #是否安装redis
redis.host=127.0.0.1 #redis所在主机
redis.password= #redis密码,可以为空
redis.port=6379 #redis端口

#instance
instance.account.node=informat-account #account节点列表,多节点逗号分隔
instance.account.port=9881 #account节点端口列表,多节点逗号分隔
instance.biz.node=informat-biz #biz节点列表,多节点逗号分隔
instance.biz.port=8881 #biz节点端口列表,多节点逗号分隔
instance.restart=true #是否需要重启服务

#s3
s3.install=true #是否安装s3服务(minio)
s3.end-point=http://127.0.0.1:19000 #s3服务终端
s3.data-home=/data/minio_home #s3服务安装路径
s3.access-key=admin #S3访问密钥
s3.secret-key=admin123455202221001 #S3密钥
s3.bucket-name=informat-next #S3存储桶名称
s3-region= #S3区域
s3.port=19000 #S3端口
s3.console-port=19001 #S3控制台端口
s3.restart=true #S3重启标志

# erlang
erlang.install=true #是否安装erlang

# mq.md
mq.install=true #是否安装MQ
mq.autostart=true #MQ是否自动重启
mq.host=127.0.0.1 #MQ主机
mq.port=5672 #MQ端口
mq.username=root #mq用户名
mq.password=mq_Informat_20221101 #MQ密码
mq.enable-management=true #是否启用MQ管理功能

# office

office.install=true #是否安装onlyoffice
office.db-create=true #是否创建数据库
office.copy-license=true #是否复制license
office.replace-logo=true #是否替换logo
office.port=9002 #onlyoffice端口
office.db-host=127.0.0.1 #onlyoffice数据库主机
office.db-port=5432 #onlyoffice数据库端口
office.db-name=onlyoffice #onlyoffice 数据库名称
office.db-user=onlyoffice #onlyoffice 数据库用户名
office.db-password=onlyoffice #onlyoffice 数据库密码
office.cache-db-host=127.0.0.1 #onlyoffice 缓存数据库主机
office.cache-db-port=6379 #onlyoffice 缓存数据库端口
office.cache-db-password= #onlyoffice 缓存数据库密码
office.mq-host=127.0.0.1 #onlyoffice 消息队列主机
office.mq-port=5672 #onlyoffice 消息队列端口
office.mq-user=guest #onlyoffice 消息队列用户名
office.mq-password=guest #onlyoffice 消息队列密码
office.preview-url=http://127.0.0.1:9001/ #onlyoffice 预览 URL

# es

es.install=true # 是否安装 Elasticsearch
es.data-home=/data/es # Elasticsearch 数据目录
es.restart=true # 是否重启 Elasticsearch
es.name=informat # Elasticsearch 名称
es.host=127.0.0.1 # Elasticsearch 主机地址
es.port=9200 # Elasticsearch 端口号
es.cluster-name=informat  # Elasticsearch 集群名称

es.create-executive-user=true # 是否创建执行用户
es.executive-user=es # 执行用户名称
es.executive-group=es # 执行用户组