赵走x博客
网站访问量:151048
首页
书籍
软件
工具
古诗词
搜索
登录
kkfileview部署
kkfileview部署
资源编号:570067
热度:656
### 部署kkfileview 过程步骤 ``` cd /opt/kkfileview wget https://kkfileview.keking.cn/kkFileView-4.0.0.tar.gz wget https://static.rdmp.medinc.cn/static/kkFileView-4.4.0-beta.tar.gz?OSSAccessKeyId=LTAI5tMfjrHtBMzqwNYBSSMb&Expires=1724233450&Signature=m%2Fbyc49chA4lKo4jXYHdtDou7Ls%3D tar xzvf kkFileView-4.0.0.tar.gz 修改属性文件前准备 cd /opt/medinc/kkfileview/kkFileView-4.0.0 mkdir data && cd .. ``` ### 修改属性文件 kkFileView-4.0.0/config/application.properties ``` #file.dir = D:\\kkFileview\\ file.dir = ${KK_FILE_DIR:/opt/medinc/kkfileview/kkFileView-4.0.0/data} #openoffice home路径 #office.home = C:\\Program Files (x86)\\OpenOffice 4 office.home = ${KK_OFFICE_HOME:/opt/libreoffice7.1} ``` ### 部署libreoffice过程步骤 ``` 下载LibreOffice_7.5.3_Linux_x86-64_rpm.tar.gz cd /opt/download wget http://downloadarchive.documentfoundation.org/libreoffice/old/7.5.3.2/rpm/x86_64/LibreOffice_7.5.3.2_Linux_x86-64_rpm.tar.gz ``` 安装libreOffice ``` cd LibreOffice_7.5.3.2_Linux_x86-64_rpm/RPMS yum install -y *.rpm ``` 部署中文语言包过程步骤,解决预览时中文乱码问题 ``` yum install -y fontconfig mkfontscale cd /opt/download wget http://kkfileview.keking.cn/fonts.zip unzip fonts.zip mv zhFonts/ /usr/share/fonts/ mkfontscale mkfontdir fc-cache fc-list ``` 安装LibreOffice启动时的依赖 ``` yum install -y cairo yum install libSM.x86_64 ``` 启动LibreOffice (启动了两个端口 2021,2022 ) ``` /opt/libreoffice7.5/program/soffice --headless --accept="socket,host=127.0.0.1,port=2021;urp;" --nofirststartwizard & /opt/libreoffice7.5/program/soffice --headless --accept="socket,host=127.0.0.1,port=2022;urp;" --nofirststartwizard & ``` 启动kkFileView ``` cd /opt/medinc/kkfileview/kkFileView-4.0.0/bin/ startup.sh ```