Skip to content

Installer Command Line Installation

Download the Installer to the Target Server

The platform provides two versions of the installer. You can select the corresponding download address based on your system version.

For redhat7/centos7:

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

For redhat8/centos8:

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

For Ubuntu 22.04/24.04:

# AMD architecture
https://repo.informat.cn/downloads/installer/ubuntu/informat-next-ubuntu-x8664-installer.tar
# ARM architecture
https://repo.informat.cn/downloads/installer/ubuntu/informat-next-ubuntu-arm-installer.tar

Example: Download the installer for redhat7/centos7 to the target server

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

Download the Informat Installation Package

Obtain the installation package link for the corresponding version through the Informat Installation Package Source and download it to the same level directory as the informat_next_installer folder.

shell
informat_next_dev.zip  informat_next_installer

Example: Download the dev version of the Informat installation package

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

Modify the Configuration File config.properties

shell
cd informat_next_installer
vi config.properties

Find the line package-path=../informat_next_1.0.zip

Modify it to the actual installation package file name:

package-path=../informat_next_dev.zip

Refer to the following description for the configuration file config.properties and selectively install the required components.

By default, nginx, redis, minio, onlyoffice, rabbitmq, and elasticsearch will be installed.

Download Compilation Dependencies

shell
# For centos
sudo yum install -y autoconf libtool make gcc openssl-devel curl-devel zlib-devel gettext expat-devel policycoreutils-python-utils

# For ubuntu
sudo apt-get install -y autoconf libtool make gcc libssl-dev libcurl4-openssl-dev zlib1g-dev gettext libexpat1-dev

Run the Installer via Command Line

After confirming the configuration, run the installation from the command line:

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

Install via configuration file
$ ./jdk/bin/java -jar InformatNextInstaller-1.0.0.jar config.properties

Configuration File config.properties Parameter Description

properties
linux.distribution=RedHat # Linux distribution
linux.distribution-version=7.9 # Linux distribution version number

home-path=/informat-next # Informat instance installation path
package-path=../informat_next_1.0.zip # Path to the Informat installation package
instance=true # Whether to install the Informat service program. Set to false if you only need to reinstall the database or other components after a successful installation
web-url=http://127.0.0.1/

# Database configuration
db.install=true # Whether to install the database
db.home-path=/data/pgsql # Database data storage path
db.create-account=true # Whether to create the account database
db.create-biz=true # Whether to create the biz database
db.init-account=true # Whether to initialize the account database (only set to true during first installation)
db.init-biz=true # Whether to initialize the biz database (only set to true during first installation)
db.upgrade-account=true # Whether to upgrade the account database
db.upgrade-biz=true # Whether to upgrade the biz database
db.account.name=db_informat2_account_prd # Account database name
db.biz.name=db_informat2_biz_prd_0 # Biz database name
db.host=127.0.0.1 # Database host name
db.port=5432 # Database port
db.user=postgres # Database username
db.password=Informat-Next_#,.20221001 # Database user password
db.opt-db-name=postgres # Default database
db.config-update=true # Whether to update configuration files

# Nginx configuration
nginx.install=true # Whether to install nginx
# Dependency
nginx.install-pcre2=true # Whether to install the pcre2 library
nginx.port=80 # Nginx port
nginx.server-name=_ # Nginx server name
nginx.intranet-port=19881 # RPC communication port for biz and account systems
nginx.intranet-url=http://127.0.0.1:19881/ # RPC communication address for biz and account systems
nginx.certificate-path= # Nginx certificate path
nginx.certificate-key-path= # Nginx certificate private key path
nginx.includes-conf-path=/etc/nginx/conf.d # Nginx configuration file path

# Redis configuration
redis.install=true # Whether to install redis
redis.host=127.0.0.1 # Redis host
redis.password= # Redis password (can be empty)
redis.port=6379 # Redis port

# Instance configuration
instance.account.node=informat-account # Account node list (comma-separated for multiple nodes)
instance.account.port=9881 # Account node port list (comma-separated for multiple nodes)
instance.biz.node=informat-biz # Biz node list (comma-separated for multiple nodes)
instance.biz.port=8881 # Biz node port list (comma-separated for multiple nodes)
instance.restart=true # Whether to restart the service

# S3 configuration
s3.install=true # Whether to install S3 service (minio)
s3.end-point=http://127.0.0.1:19000 # S3 service endpoint
s3.data-home=/data/minio_home # S3 service installation path
s3.access-key=admin # S3 access key
s3.secret-key=admin123455202221001 # S3 secret key
s3.bucket-name=informat-next # S3 bucket name
s3.region= # S3 region
s3.port=19000 # S3 port
s3.console-port=19001 # S3 console port
s3.restart=true # S3 restart flag

# Erlang configuration
erlang.install=true # Whether to install erlang

# MQ configuration
mq.install=true # Whether to install MQ
mq.autostart=true # Whether MQ should auto-restart
mq.host=127.0.0.1 # MQ host
mq.port=5672 # MQ port
mq.username=root # MQ username
mq.password=mq_Informat_20221101 # MQ password
mq.enable-management=true # Whether to enable MQ management functionality

# Office configuration

office.install=true # Whether to install onlyoffice
office.db-create=true # Whether to create the database
office.copy-license=true # Whether to copy the license
office.replace-logo=true # Whether to replace the logo
office.port=9002 # OnlyOffice port
office.db-host=127.0.0.1 # OnlyOffice database host
office.db-port=5432 # OnlyOffice database port
office.db-name=onlyoffice # OnlyOffice database name
office.db-user=onlyoffice # OnlyOffice database username
office.db-password=onlyoffice # OnlyOffice database password
office.cache-db-host=127.0.0.1 # OnlyOffice cache database host
office.cache-db-port=6379 # OnlyOffice cache database port
office.cache-db-password= # OnlyOffice cache database password
office.mq-host=127.0.0.1 # OnlyOffice message queue host
office.mq-port=5672 # OnlyOffice message queue port
office.mq-user=guest # OnlyOffice message queue username
office.mq-password=guest # OnlyOffice message queue password
office.preview-url=http://127.0.0.1:9001/ # OnlyOffice preview URL

# ES configuration

es.install=true # Whether to install Elasticsearch
es.data-home=/data/es # Elasticsearch data directory
es.restart=true # Whether to restart Elasticsearch
es.name=informat # Elasticsearch name
es.host=127.0.0.1 # Elasticsearch host address
es.port=9200 # Elasticsearch port number
es.cluster-name=informat  # Elasticsearch cluster name

es.create-executive-user=true # Whether to create an executive user
es.executive-user=es # Executive user name
es.executive-group=es # Executive user group