# Files for deploying

File Description File Name File Path
service jar package tokenizer.jar /opt/split-word
configuration file of jar package application.properties /opt/split-word
sentences segmentation excuteble application LongSentenceSpliter /opt/program
words library words /opt/program

# OS

we recommend Ubuntu 18.04.

# Configuration Environment

1.update install application source of Linux,and install JRE.

apt update
apt upgrade
apt install default-jre
  1. Install QT related libraries
apt-get install qt5-default
apt install libqt5multimedia5
apt install libqt5multimedia5-plugins

# configuration file of jar package

this file application.properties should be located in directory which contains jar also.or located in config file at same directory,and every field has default value,just fix it as correct value.

#service port
server.port=8093

#the local path of long sentence spliter
tokenizerPath = /opt/program/LongSentenceSpliter
#the local path of word library file
tokenizerWordsPath = /opt/program/words
#the word length need to be splitted
maxWordLength = 24

#the local path of temporary json file
jsonPath=/tmp/editor/json/

#default storage type: qcloud, qiniu, aws, aliyun, baidu, local, ksyun
defaultStorageType=

#storage accessKey
accessKey=
#storage secretKey
secretKey=

#qiniu storage configurations
QiniuBucket=bsedit
QiniuHost=http://bsedit.meishesdk.com
#qcloud storage configurations
QcloudRegion=ap-beijing
QcloudBucket=bsedit-1257467088
QcloudOriginHost=https://bsedit-1257467088.cos.ap-beijing.myqcloud.com
QcloudHost=https://easset.meishesdk.com
#aws storage configurations
AwsS3Region=us-west-1
AwsS3Bucket=bsedit
AwsS3OriginHost=https://bsedit.s3-us-west-1.amazonaws.com
AwsS3Host=https://d3eban5zvz6846.cloudfront.net
#aliyun storage configurations
AliyunEndpoint=http://oss-cn-beijing.aliyuncs.com
AliyunBucket=bseditor
AliyunOriginHost=https://bseditor.oss-cn-beijing.aliyuncs.com
AliyunHost=https://alieasset.meishesdk.com
AliyunAuthKey=
AliyunSignatureUrlEnabled=false
#baidu storage configurations
BOSEndpoint=http://bj.bcebos.com
BOSBucket=testbsedit
BOSOriginHost=https://testbsedit.bj.bcebos.com
BOSHost=https://testbsedit.bj.bcebos.com
#ksyun storage configurations
KsyunEndpoint   =
KsyunBucket     =
KsyunOriginHost =
KsyunHost       =
#local storage configurations
LocalFilePath = /opt/file/bsedit
LocalFileHost = https://testeditor.meishesdk.com:15050/bsedit

#enable storage path pattern: <jar path>/yyyy/MM/dd/<module name> 
dateSplitPath = true

#common storage prefix, keep default
commonPrefix = editor

#the Meishe Task Scheduler web api host
task.scheduler.url = http://localhost:9999
#the interval time to send heartbeat package to Meishe Task Scheduler
heartbeat.fixed.delay = 20000
#the max runable count of processServer
max.execute.count = 10
#the service host registered to Meishe Task Scheduler
server.url = http://localhost:${server.port}

#the request connection timeout, measured by milisecond
connectTimeout = 5000
#the connection pool timeout, measured by milisecond
connectionRequestTimeout = 5000
#the socket read timeout, measured by milisecond
socketTimeout= 5000
#the http request fail retry count
httpRequestRetryCount = 3
#the interval time between requests, measured by milisecond
httpRequestFailSleepTime = 3000 

# Start service

1.Switch the direction to where jar package located in.

nohup java - jar tokenizer.jar > / dev / null 2 > & 1 &

# Logs file specification

The service log directory is created automatically under /opt/materialserver directory. The log file is created daily, and will keep the last 30 days log file.