赞
踩
CentOS7.9
Java: 1.8+
kkfileview v4.0.0版本[https://gitee.com/kekingcn/file-online-preview/releases]
> wget https://kkfileview.keking.cn/kkFileView-4.0.0.tar.gz
> tar -zxvf kkFileView-4.0.0.tar.gz
=====================================================
默认端口为 8012, 可以在 kkFileView-4.0.0/config/application.properties 里面修改 server.port
修改配置文件的ip
1、进入kkfileview容器:docker exec -it 7ddebeec8c37 /bin/sh
2、进入目录:/opt/kkFileView-4.1.0/config/application.properties
3、修改application.properties文件,将容器中的配置文件拷贝出来修改:docker cp 7ddebeec8c37(容器id或者名称):/opt/kkFileView-4.1.0/config/application.properties .
4、将修改后的文件反向拷贝到容器里面:docker cp ./application.properties 7ddebeec8c37:/opt/kkFileView-4.1.0/config/application.properties
最后重启服务
> wget https://kkfileview.keking.cn/LibreOffice_7.1.4_Linux_x86-64_rpm.tar.gz
> tar -zxvf LibreOffice_7.1.4_Linux_x86-64_rpm.tar.gz
> cd LibreOffice_7.1.4.2_Linux_x86-64_rpm/RPMS
> yum install -y *.rpm
> wget https://downloadarchive.documentfoundation.org/libreoffice/old/7.1.4.2/rpm/x86_64/LibreOffice_7.1.4.2_Linux_x86-64_rpm_langpack_zh-CN.tar.gz
> 按步骤1.1操作后续, 省略
> cd /opt/libreoffice7.1/program > ./soffice --version ===================================================== 如果顺利,此时可以看到一串版本号如下 【LibreOffice 7.1.4.2 a529a4fab45b75fefc5b6226684193eb000654f6】 否则,可能会遇到如下: Q:【/opt/libreoffice7.1/program/soffice.bin: error while loading shared libraries: libcairo.so.2: cannot open shared object file: No such file or directory】 A:yum install -y cairo Q:【/opt/libreoffice7.1/program/soffice.bin: error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory】 A:yum install -y lib 总之,缺什么装什么,直到version正常输出为止 -_-
> wget https://kkfileview.keking.cn/kkFileView-4.0.0.tar.gz
> tar -zxvf kkFileView-4.0.0.tar.gz
=====================================================
默认端口为 8012, 可以在 kkFileView-4.0.0/config/application.properties 里面修改 server.port
创建日志文件
> cd kkFileView-4.0.0/log
> touch kkFileView.log
运行启动程序
> cd ../bin/
> ./startup.sh | ./showlog.sh
观察日志, kkFileView 服务启动完成
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。