linux下安装kkFileView4

news2024/11/23 7:08:00

kkFileView为文件文档在线预览解决方案,该项目使用流行的spring boot搭建,易上手和部署,基本支持主流办公文档的在线预览,如doc,docx,xls,xlsx,ppt,pptx,pdf,txt,zip,rar,图片,视频,音频等等

安装kkFileView前需要安装LibreOffice

一、安装 LibreOffice7.1

1、创建文件夹

mkdir kkFileView

2、通过get或者上传自己下载好的安装包

wget https://kkfileview.keking.cn/LibreOffice_7.1.4_Linux_x86-64_rpm.tar.gz

在这里插入图片描述

3、进行解压

tar -zxvf LibreOffice_7.1.4_Linux_x86-64_rpm.tar.gz

在这里插入图片描述
在这里插入图片描述

4、切换到LibreOffice_7.1.4.2_Linux_x86-64_rpm/RPMS目录下

cd  /kkFileView/LibreOffice_7.1.4.2_Linux_x86-64_rpm/RPMS

5、安装LibreOffice

yum localinstall *.rpm

[root@localhost RPMS]# yum localinstall *.rpm
Loaded plugins:
fastestmirror Examining libobasis7.1-base-7.1.4.2-2.x86_64.rpm:
libobasis7.1-base-7.1.4.2-2.x86_64 Marking
libobasis7.1-base-7.1.4.2-2.x86_64.rpm to be installed Examining
libobasis7.1-calc-7.1.4.2-2.x86_64.rpm:
libobasis7.1-calc-7.1.4.2-2.x86_64 Marking
libobasis7.1-calc-7.1.4.2-2.x86_64.rpm to be installed Examining
libobasis7.1-core-7.1.4.2-2.x86_64.rpm:
libobasis7.1-core-7.1.4.2-2.x86_64 Marking
libobasis7.1-core-7.1.4.2-2.x86_64.rpm to be installed Examining
libobasis7.1-draw-7.1.4.2-2.x86_64.rpm:
libobasis7.1-draw-7.1.4.2-2.x86_64 Marking
libobasis7.1-draw-7.1.4.2-2.x86_64.rpm to be installed Examining
libobasis7.1-en-US-7.1.4.2-2.x86_64.rpm:
libobasis7.1-en-US-7.1.4.2-2.x86_64 Marking
libobasis7.1-en-US-7.1.4.2-2.x86_64.rpm to be installed Examining
libobasis7.1-extension-beanshell-script-provider-7.1.4.2-2.x86_64.rpm:
libobasis7.1-extension-beanshell-script-provider-7.1.4.2-2.x86_64
Marking
libobasis7.1-extension-beanshell-script-provider-7.1.4.2-2.x86_64.rpm
to be installed Examining
libobasis7.1-extension-javascript-script-provider-7.1.4.2-2.x86_64.rpm:
libobasis7.1-extension-javascript-script-provider-7.1.4.2-2.x86_64
Marking
libobasis7.1-extension-javascript-script-provider-7.1.4.2-2.x86_64.rpm
to be installed Examining
libobasis7.1-extension-mediawiki-publisher-7.1.4.2-2.x86_64.rpm:
libobasis7.1-extension-mediawiki-publisher-7.1.4.2-2.x86_64 Marking
libobasis7.1-extension-mediawiki-publisher-7.1.4.2-2.x86_64.rpm to be
installed Examining
libobasis7.1-extension-nlpsolver-7.1.4.2-2.x86_64.rpm:
libobasis7.1-extension-nlpsolver-7.1.4.2-2.x86_64 Marking
libobasis7.1-extension-nlpsolver-7.1.4.2-2.x86_64.rpm to be installed
Examining libobasis7.1-extension-pdf-import-7.1.4.2-2.x86_64.rpm:
libobasis7.1-extension-pdf-import-7.1.4.2-2.x86_64 Marking
libobasis7.1-extension-pdf-import-7.1.4.2-2.x86_64.rpm to be installed
Examining libobasis7.1-extension-report-builder-7.1.4.2-2.x86_64.rpm:
libobasis7.1-extension-report-builder-7.1.4.2-2.x86_64 Marking
libobasis7.1-extension-report-builder-7.1.4.2-2.x86_64.rpm to be
installed Examining libobasis7.1-firebird-7.1.4.2-2.x86_64.rpm:
libobasis7.1-firebird-7.1.4.2-2.x86_64 Marking
libobasis7.1-firebird-7.1.4.2-2.x86_64.rpm to be installed Examining
libobasis7.1-gnome-integration-7.1.4.2-2.x86_64.rpm:
libobasis7.1-gnome-integration-7.1.4.2-2.x86_64 Marking
libobasis7.1-gnome-integration-7.1.4.2-2.x86_64.rpm to be installed
Examining libobasis7.1-graphicfilter-7.1.4.2-2.x86_64.rpm:
libobasis7.1-graphicfilter-7.1.4.2-2.x86_64 Marking
libobasis7.1-graphicfilter-7.1.4.2-2.x86_64.rpm to be installed
Examining libobasis7.1-images-7.1.4.2-2.x86_64.rpm:
libobasis7.1-images-7.1.4.2-2.x86_64 Marking
libobasis7.1-images-7.1.4.2-2.x86_64.rpm to be installed Examining
libobasis7.1-impress-7.1.4.2-2.x86_64.rpm:
libobasis7.1-impress-7.1.4.2-2.x86_64 Marking
libobasis7.1-impress-7.1.4.2-2.x86_64.rpm to be installed Examining
libobasis7.1-kde-integration-7.1.4.2-2.x86_64.rpm:
libobasis7.1-kde-integration-7.1.4.2-2.x86_64 Marking
libobasis7.1-kde-integration-7.1.4.2-2.x86_64.rpm to be installed
Examining libobasis7.1-librelogo-7.1.4.2-2.x86_64.rpm:
libobasis7.1-librelogo-7.1.4.2-2.x86_64 Marking
libobasis7.1-librelogo-7.1.4.2-2.x86_64.rpm to be installed Examining
libobasis7.1-libreofficekit-data-7.1.4.2-2.x86_64.rpm:
libobasis7.1-libreofficekit-data-7.1.4.2-2.x86_64 Marking
libobasis7.1-libreofficekit-data-7.1.4.2-2.x86_64.rpm to be installed
Examining libobasis7.1-math-7.1.4.2-2.x86_64.rpm:
libobasis7.1-math-7.1.4.2-2.x86_64 Marking
libobasis7.1-math-7.1.4.2-2.x86_64.rpm to be installed Examining
libobasis7.1-ogltrans-7.1.4.2-2.x86_64.rpm:
libobasis7.1-ogltrans-7.1.4.2-2.x86_64 Marking
libobasis7.1-ogltrans-7.1.4.2-2.x86_64.rpm to be installed Examining
libobasis7.1-onlineupdate-7.1.4.2-2.x86_64.rpm:
libobasis7.1-onlineupdate-7.1.4.2-2.x86_64 Marking
libobasis7.1-onlineupdate-7.1.4.2-2.x86_64.rpm to be installed
Examining libobasis7.1-ooofonts-7.1.4.2-2.x86_64.rpm:
libobasis7.1-ooofonts-7.1.4.2-2.x86_64 Marking
libobasis7.1-ooofonts-7.1.4.2-2.x86_64.rpm to be installed Examining
libobasis7.1-ooolinguistic-7.1.4.2-2.x86_64.rpm:
libobasis7.1-ooolinguistic-7.1.4.2-2.x86_64 Marking
libobasis7.1-ooolinguistic-7.1.4.2-2.x86_64.rpm to be installed
Examining libobasis7.1-postgresql-sdbc-7.1.4.2-2.x86_64.rpm:
libobasis7.1-postgresql-sdbc-7.1.4.2-2.x86_64 Marking
libobasis7.1-postgresql-sdbc-7.1.4.2-2.x86_64.rpm to be installed
Examining libobasis7.1-python-script-provider-7.1.4.2-2.x86_64.rpm:
libobasis7.1-python-script-provider-7.1.4.2-2.x86_64 Marking
libobasis7.1-python-script-provider-7.1.4.2-2.x86_64.rpm to be
installed Examining libobasis7.1-pyuno-7.1.4.2-2.x86_64.rpm:
libobasis7.1-pyuno-7.1.4.2-2.x86_64 Marking
libobasis7.1-pyuno-7.1.4.2-2.x86_64.rpm to be installed Examining
libobasis7.1-writer-7.1.4.2-2.x86_64.rpm:
libobasis7.1-writer-7.1.4.2-2.x86_64 Marking
libobasis7.1-writer-7.1.4.2-2.x86_64.rpm to be installed Examining
libobasis7.1-xsltfilter-7.1.4.2-2.x86_64.rpm:
libobasis7.1-xsltfilter-7.1.4.2-2.x86_64 Marking
libobasis7.1-xsltfilter-7.1.4.2-2.x86_64.rpm to be installed Examining
libreoffice7.1-7.1.4.2-2.x86_64.rpm: libreoffice7.1-7.1.4.2-2.x86_64
Marking libreoffice7.1-7.1.4.2-2.x86_64.rpm to be installed Examining
libreoffice7.1-base-7.1.4.2-2.x86_64.rpm:
libreoffice7.1-base-7.1.4.2-2.x86_64 Marking
libreoffice7.1-base-7.1.4.2-2.x86_64.rpm to be installed Examining
libreoffice7.1-calc-7.1.4.2-2.x86_64.rpm:
libreoffice7.1-calc-7.1.4.2-2.x86_64 Marking
libreoffice7.1-calc-7.1.4.2-2.x86_64.rpm to be installed Examining
libreoffice7.1-dict-en-7.1.4.2-2.x86_64.rpm:
libreoffice7.1-dict-en-7.1.4.2-2.x86_64 Marking
libreoffice7.1-dict-en-7.1.4.2-2.x86_64.rpm to be installed Examining
libreoffice7.1-dict-es-7.1.4.2-2.x86_64.rpm:
libreoffice7.1-dict-es-7.1.4.2-2.x86_64 Marking
libreoffice7.1-dict-es-7.1.4.2-2.x86_64.rpm to be installed Examining
libreoffice7.1-dict-fr-7.1.4.2-2.x86_64.rpm:
libreoffice7.1-dict-fr-7.1.4.2-2.x86_64 Marking
libreoffice7.1-dict-fr-7.1.4.2-2.x86_64.rpm to be installed Examining
libreoffice7.1-draw-7.1.4.2-2.x86_64.rpm:
libreoffice7.1-draw-7.1.4.2-2.x86_64 Marking
libreoffice7.1-draw-7.1.4.2-2.x86_64.rpm to be installed Examining
libreoffice7.1-en-US-7.1.4.2-2.x86_64.rpm:
libreoffice7.1-en-US-7.1.4.2-2.x86_64 Marking
libreoffice7.1-en-US-7.1.4.2-2.x86_64.rpm to be installed Examining
libreoffice7.1-freedesktop-menus-7.1.4-2.noarch.rpm:
libreoffice7.1-freedesktop-menus-7.1.4-2.noarch Marking
libreoffice7.1-freedesktop-menus-7.1.4-2.noarch.rpm to be installed
Examining libreoffice7.1-impress-7.1.4.2-2.x86_64.rpm:
libreoffice7.1-impress-7.1.4.2-2.x86_64 Marking
libreoffice7.1-impress-7.1.4.2-2.x86_64.rpm to be installed Examining
libreoffice7.1-math-7.1.4.2-2.x86_64.rpm:
libreoffice7.1-math-7.1.4.2-2.x86_64 Marking
libreoffice7.1-math-7.1.4.2-2.x86_64.rpm to be installed Examining
libreoffice7.1-ure-7.1.4.2-2.x86_64.rpm:
libreoffice7.1-ure-7.1.4.2-2.x86_64 Marking
libreoffice7.1-ure-7.1.4.2-2.x86_64.rpm to be installed Examining
libreoffice7.1-writer-7.1.4.2-2.x86_64.rpm:
libreoffice7.1-writer-7.1.4.2-2.x86_64 Marking
libreoffice7.1-writer-7.1.4.2-2.x86_64.rpm to be installed Resolving
Dependencies
–> Running transaction check
—> Package libobasis7.1-base.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-calc.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-core.x86_64 0:7.1.4.2-2 will be installed
–> Processing Dependency: libXinerama.so.1()(64bit) for package: libobasis7.1-core-7.1.4.2-2.x86_64 Determining fastest mirrors *
base: ftp.sjtu.edu.cn * extras: ftp.sjtu.edu.cn * updates:
ftp.sjtu.edu.cn base
| 3.6 kB 00:00:00 extras
| 2.9 kB 00:00:00 updates
| 2.9 kB 00:00:00 (1/4): base/7/x86_64/group_gz
| 153 kB 00:00:02 (2/4): extras/7/x86_64/primary_db
| 253 kB 00:00:04 (3/4): base/7/x86_64/primary_db
| 6.1 MB 00:00:27 (4/4): updates/7/x86_64/primary_db
| 27 MB 00:01:00
—> Package libobasis7.1-draw.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-en-US.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-extension-beanshell-script-provider.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-extension-javascript-script-provider.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-extension-mediawiki-publisher.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-extension-nlpsolver.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-extension-pdf-import.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-extension-report-builder.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-firebird.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-gnome-integration.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-graphicfilter.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-images.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-impress.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-kde-integration.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-librelogo.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-libreofficekit-data.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-math.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-ogltrans.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-onlineupdate.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-ooofonts.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-ooolinguistic.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-postgresql-sdbc.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-python-script-provider.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-pyuno.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-writer.x86_64 0:7.1.4.2-2 will be installed
—> Package libobasis7.1-xsltfilter.x86_64 0:7.1.4.2-2 will be installed
—> Package libreoffice7.1.x86_64 0:7.1.4.2-2 will be installed
—> Package libreoffice7.1-base.x86_64 0:7.1.4.2-2 will be installed
—> Package libreoffice7.1-calc.x86_64 0:7.1.4.2-2 will be installed
—> Package libreoffice7.1-dict-en.x86_64 0:7.1.4.2-2 will be installed
—> Package libreoffice7.1-dict-es.x86_64 0:7.1.4.2-2 will be installed
—> Package libreoffice7.1-dict-fr.x86_64 0:7.1.4.2-2 will be installed
—> Package libreoffice7.1-draw.x86_64 0:7.1.4.2-2 will be installed
—> Package libreoffice7.1-en-US.x86_64 0:7.1.4.2-2 will be installed
—> Package libreoffice7.1-freedesktop-menus.noarch 0:7.1.4-2 will be installed
—> Package libreoffice7.1-impress.x86_64 0:7.1.4.2-2 will be installed
—> Package libreoffice7.1-math.x86_64 0:7.1.4.2-2 will be installed
—> Package libreoffice7.1-ure.x86_64 0:7.1.4.2-2 will be installed
—> Package libreoffice7.1-writer.x86_64 0:7.1.4.2-2 will be installed
–> Running transaction check
—> Package libXinerama.x86_64 0:1.1.3-2.1.el7 will be installed
–> Processing Dependency: libX11 >= 1.5.99.902 for package: libXinerama-1.1.3-2.1.el7.x86_64
–> Processing Dependency: libXext.so.6()(64bit) for package: libXinerama-1.1.3-2.1.el7.x86_64
–> Processing Dependency: libX11.so.6()(64bit) for package: libXinerama-1.1.3-2.1.el7.x86_64
–> Running transaction check
—> Package libX11.x86_64 0:1.6.7-5.el7_9 will be installed
–> Processing Dependency: libX11-common >= 1.6.7-5.el7_9 for package: libX11-1.6.7-5.el7_9.x86_64
–> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.7-5.el7_9.x86_64
—> Package libXext.x86_64 0:1.3.3-3.el7 will be installed
–> Running transaction check
—> Package libX11-common.noarch 0:1.6.7-5.el7_9 will be installed
—> Package libxcb.x86_64 0:1.13-1.el7 will be installed
–> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.13-1.el7.x86_64
–> Running transaction check
—> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================== Package Arch Version Repository
Size
=================================================================================================================================== Installing: libobasis7.1-base x86_64 7.1.4.2-2
/libobasis7.1-base-7.1.4.2-2.x86_64 5.0
M libobasis7.1-calc x86_64 7.1.4.2-2
/libobasis7.1-calc-7.1.4.2-2.x86_64 26
M libobasis7.1-core x86_64 7.1.4.2-2
/libobasis7.1-core-7.1.4.2-2.x86_64 291
M libobasis7.1-draw x86_64 7.1.4.2-2
/libobasis7.1-draw-7.1.4.2-2.x86_64 49
k libobasis7.1-en-US x86_64 7.1.4.2-2
/libobasis7.1-en-US-7.1.4.2-2.x86_64 164
k libobasis7.1-extension-beanshell-script-provider
x86_64 7.1.4.2-2 /libobasis7.1-extension-beanshell-script-provider-7.1.4.2-2.x86_64 414
k libobasis7.1-extension-javascript-script-provider
x86_64 7.1.4.2-2 /libobasis7.1-extension-javascript-script-provider-7.1.4.2-2.x86_64
656 k libobasis7.1-extension-mediawiki-publisher
x86_64 7.1.4.2-2 /libobasis7.1-extension-mediawiki-publisher-7.1.4.2-2.x86_64 4.4
M libobasis7.1-extension-nlpsolver x86_64 7.1.4.2-2
/libobasis7.1-extension-nlpsolver-7.1.4.2-2.x86_64 2.2
M libobasis7.1-extension-pdf-import x86_64 7.1.4.2-2
/libobasis7.1-extension-pdf-import-7.1.4.2-2.x86_64 2.8
M libobasis7.1-extension-report-builder
x86_64 7.1.4.2-2 /libobasis7.1-extension-report-builder-7.1.4.2-2.x86_64 5.8
M libobasis7.1-firebird x86_64 7.1.4.2-2
/libobasis7.1-firebird-7.1.4.2-2.x86_64 10
M libobasis7.1-gnome-integration x86_64 7.1.4.2-2
/libobasis7.1-gnome-integration-7.1.4.2-2.x86_64 2.7
M libobasis7.1-graphicfilter x86_64 7.1.4.2-2
/libobasis7.1-graphicfilter-7.1.4.2-2.x86_64 3.9
M libobasis7.1-images x86_64 7.1.4.2-2
/libobasis7.1-images-7.1.4.2-2.x86_64 59
M libobasis7.1-impress x86_64 7.1.4.2-2
/libobasis7.1-impress-7.1.4.2-2.x86_64 2.4
M libobasis7.1-kde-integration x86_64 7.1.4.2-2
/libobasis7.1-kde-integration-7.1.4.2-2.x86_64 5.8
M libobasis7.1-librelogo x86_64 7.1.4.2-2
/libobasis7.1-librelogo-7.1.4.2-2.x86_64 773
k libobasis7.1-libreofficekit-data x86_64 7.1.4.2-2
/libobasis7.1-libreofficekit-data-7.1.4.2-2.x86_64 1.4
k libobasis7.1-math x86_64 7.1.4.2-2
/libobasis7.1-math-7.1.4.2-2.x86_64 1.5
M libobasis7.1-ogltrans x86_64 7.1.4.2-2
/libobasis7.1-ogltrans-7.1.4.2-2.x86_64 370
k libobasis7.1-onlineupdate x86_64 7.1.4.2-2
/libobasis7.1-onlineupdate-7.1.4.2-2.x86_64 567
k libobasis7.1-ooofonts x86_64 7.1.4.2-2
/libobasis7.1-ooofonts-7.1.4.2-2.x86_64 69
M libobasis7.1-ooolinguistic x86_64 7.1.4.2-2
/libobasis7.1-ooolinguistic-7.1.4.2-2.x86_64 1.4
k libobasis7.1-postgresql-sdbc x86_64 7.1.4.2-2
/libobasis7.1-postgresql-sdbc-7.1.4.2-2.x86_64 4.5
M libobasis7.1-python-script-provider x86_64 7.1.4.2-2
/libobasis7.1-python-script-provider-7.1.4.2-2.x86_64 43
k libobasis7.1-pyuno x86_64 7.1.4.2-2
/libobasis7.1-pyuno-7.1.4.2-2.x86_64 25
M libobasis7.1-writer x86_64 7.1.4.2-2
/libobasis7.1-writer-7.1.4.2-2.x86_64 13
M libobasis7.1-xsltfilter x86_64 7.1.4.2-2
/libobasis7.1-xsltfilter-7.1.4.2-2.x86_64 4.3
M libreoffice7.1 x86_64 7.1.4.2-2
/libreoffice7.1-7.1.4.2-2.x86_64 3.5
M libreoffice7.1-base x86_64 7.1.4.2-2
/libreoffice7.1-base-7.1.4.2-2.x86_64 63
libreoffice7.1-calc x86_64 7.1.4.2-2
/libreoffice7.1-calc-7.1.4.2-2.x86_64 63
libreoffice7.1-dict-en x86_64 7.1.4.2-2
/libreoffice7.1-dict-en-7.1.4.2-2.x86_64 25
M libreoffice7.1-dict-es x86_64 7.1.4.2-2
/libreoffice7.1-dict-es-7.1.4.2-2.x86_64 23
M libreoffice7.1-dict-fr x86_64 7.1.4.2-2
/libreoffice7.1-dict-fr-7.1.4.2-2.x86_64 6.4
M libreoffice7.1-draw x86_64 7.1.4.2-2
/libreoffice7.1-draw-7.1.4.2-2.x86_64 63
libreoffice7.1-en-US x86_64 7.1.4.2-2
/libreoffice7.1-en-US-7.1.4.2-2.x86_64 16
k libreoffice7.1-freedesktop-menus noarch 7.1.4-2
/libreoffice7.1-freedesktop-menus-7.1.4-2.noarch 1.4
M libreoffice7.1-impress x86_64 7.1.4.2-2
/libreoffice7.1-impress-7.1.4.2-2.x86_64 66
libreoffice7.1-math x86_64 7.1.4.2-2
/libreoffice7.1-math-7.1.4.2-2.x86_64 63
libreoffice7.1-ure x86_64 7.1.4.2-2
/libreoffice7.1-ure-7.1.4.2-2.x86_64 41
M libreoffice7.1-writer x86_64 7.1.4.2-2
/libreoffice7.1-writer-7.1.4.2-2.x86_64 65
Installing for dependencies: libX11
x86_64 1.6.7-5.el7_9 updates
607 k libX11-common noarch 1.6.7-5.el7_9
updates 165
k libXau x86_64 1.0.8-2.1.el7 base
29 k libXext x86_64 1.3.3-3.el7 base
39 k libXinerama x86_64 1.1.3-2.1.el7 base
14 k libxcb x86_64 1.13-1.el7 base
214 k

Transaction Summary
=================================================================================================================================== Install 42 Packages (+6 Dependent packages)

Total size: 644 M Total download size: 1.0 M Installed size: 647 M Is
this ok [y/d/N]: y Downloading packages: warning:
/var/cache/yum/x86_64/7/base/packages/libXau-1.0.8-2.1.el7.x86_64.rpm:
Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Public key for
libXau-1.0.8-2.1.el7.x86_64.rpm is not installed (1/6):
libXau-1.0.8-2.1.el7.x86_64.rpm
| 29 kB 00:00:00 (2/6): libXinerama-1.1.3-2.1.el7.x86_64.rpm
| 14 kB 00:00:00 (3/6): libXext-1.3.3-3.el7.x86_64.rpm
| 39 kB 00:00:00 Public key for
libX11-common-1.6.7-5.el7_9.noarch.rpm is not installed
] 95 kB/s | 354 kB 00:00:07 ETA (4/6):
libX11-common-1.6.7-5.el7_9.noarch.rpm
| 165 kB 00:00:01 (5/6): libxcb-1.13-1.el7.x86_64.rpm
| 214 kB 00:00:01 (6/6): libX11-1.6.7-5.el7_9.x86_64.rpm
| 607 kB 00:00:32
----------------------------------------------------------------------------------------------------------------------------------- Total
33 kB/s | 1.0 MB 00:00:32 Retrieving key from
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Importing GPG key
0xF4A80EB5: Userid : “CentOS-7 Key (CentOS 7 Official Signing
Key) security@centos.org” Fingerprint: 6341 ab27 53d7 8a78 a7c2
7bb1 24c6 a8a7 f4a8 0eb5 Package :
centos-release-7-9.2009.0.el7.centos.x86_64 (@anaconda) From :
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Is this ok [y/N]: y Running
transaction check Running transaction test Transaction test succeeded
Running transaction Warning: RPMDB altered outside of yum.
Installing : libreoffice7.1-ure-7.1.4.2-2.x86_64
1/48 Installing : libXau-1.0.8-2.1.el7.x86_64
2/48 Installing : libxcb-1.13-1.el7.x86_64
3/48 Installing : libobasis7.1-ooofonts-7.1.4.2-2.x86_64
4/48 Installing : libX11-common-1.6.7-5.el7_9.noarch
5/48 Installing : libX11-1.6.7-5.el7_9.x86_64
6/48 Installing : libXext-1.3.3-3.el7.x86_64
7/48 Installing : libXinerama-1.1.3-2.1.el7.x86_64
8/48 Installing : libobasis7.1-core-7.1.4.2-2.x86_64
9/48 Installing : libobasis7.1-base-7.1.4.2-2.x86_64
10/48 Installing : libobasis7.1-impress-7.1.4.2-2.x86_64
11/48 Installing : libobasis7.1-writer-7.1.4.2-2.x86_64
12/48 Installing : libobasis7.1-images-7.1.4.2-2.x86_64
13/48 Installing : libreoffice7.1-7.1.4.2-2.x86_64
14/48 Installing : libobasis7.1-calc-7.1.4.2-2.x86_64
15/48 Installing : libobasis7.1-math-7.1.4.2-2.x86_64
16/48 Installing : libobasis7.1-en-US-7.1.4.2-2.x86_64
17/48 Installing : libobasis7.1-pyuno-7.1.4.2-2.x86_64
18/48 Installing : libobasis7.1-draw-7.1.4.2-2.x86_64
19/48 Installing : libreoffice7.1-draw-7.1.4.2-2.x86_64
20/48 Installing : libobasis7.1-librelogo-7.1.4.2-2.x86_64
21/48 Installing : libreoffice7.1-en-US-7.1.4.2-2.x86_64
22/48 Installing : libreoffice7.1-math-7.1.4.2-2.x86_64
23/48 Installing : libreoffice7.1-calc-7.1.4.2-2.x86_64
24/48 Installing : libreoffice7.1-writer-7.1.4.2-2.x86_64
25/48 Installing : libreoffice7.1-impress-7.1.4.2-2.x86_64
26/48 Installing : libreoffice7.1-dict-es-7.1.4.2-2.x86_64
27/48 Installing : libreoffice7.1-dict-en-7.1.4.2-2.x86_64
28/48 Installing : libreoffice7.1-base-7.1.4.2-2.x86_64
29/48 Installing : libreoffice7.1-dict-fr-7.1.4.2-2.x86_64
30/48 Installing : libobasis7.1-ogltrans-7.1.4.2-2.x86_64
31/48 Installing : libobasis7.1-postgresql-sdbc-7.1.4.2-2.x86_64
32/48 Installing : libobasis7.1-onlineupdate-7.1.4.2-2.x86_64
33/48 Installing :
libobasis7.1-extension-nlpsolver-7.1.4.2-2.x86_64
34/48 Installing : libobasis7.1-gnome-integration-7.1.4.2-2.x86_64
35/48 Installing :
libobasis7.1-extension-mediawiki-publisher-7.1.4.2-2.x86_64
36/48 Installing :
libobasis7.1-extension-report-builder-7.1.4.2-2.x86_64
37/48 Installing : libobasis7.1-xsltfilter-7.1.4.2-2.x86_64
38/48 Installing : libobasis7.1-kde-integration-7.1.4.2-2.x86_64
39/48 Installing :
libobasis7.1-extension-javascript-script-provider-7.1.4.2-2.x86_64
40/48 Installing :
libobasis7.1-extension-beanshell-script-provider-7.1.4.2-2.x86_64
41/48 Installing : libobasis7.1-graphicfilter-7.1.4.2-2.x86_64
42/48 Installing :
libobasis7.1-libreofficekit-data-7.1.4.2-2.x86_64
43/48 Installing :
libobasis7.1-python-script-provider-7.1.4.2-2.x86_64
44/48 Installing : libobasis7.1-firebird-7.1.4.2-2.x86_64
45/48 Installing : libobasis7.1-ooolinguistic-7.1.4.2-2.x86_64
46/48 Installing :
libobasis7.1-extension-pdf-import-7.1.4.2-2.x86_64
47/48 Installing : libreoffice7.1-freedesktop-menus-7.1.4-2.noarch
48/48 which: no update-desktop-database in
(/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin)
/bin/update-mime-database which: no update-desktop-database in
(/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin) which: no
update-desktop-database in
(/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin) Verifying :
libXext-1.3.3-3.el7.x86_64
1/48 Verifying : libX11-common-1.6.7-5.el7_9.noarch
2/48 Verifying : libobasis7.1-base-7.1.4.2-2.x86_64
3/48 Verifying : libobasis7.1-onlineupdate-7.1.4.2-2.x86_64
4/48 Verifying : libXinerama-1.1.3-2.1.el7.x86_64
5/48 Verifying : libobasis7.1-images-7.1.4.2-2.x86_64
6/48 Verifying : libreoffice7.1-ure-7.1.4.2-2.x86_64
7/48 Verifying : libobasis7.1-extension-nlpsolver-7.1.4.2-2.x86_64
8/48 Verifying : libreoffice7.1-en-US-7.1.4.2-2.x86_64
9/48 Verifying : libreoffice7.1-writer-7.1.4.2-2.x86_64
10/48 Verifying : libreoffice7.1-7.1.4.2-2.x86_64
11/48 Verifying : libobasis7.1-calc-7.1.4.2-2.x86_64
12/48 Verifying : libobasis7.1-gnome-integration-7.1.4.2-2.x86_64
13/48 Verifying :
libobasis7.1-extension-mediawiki-publisher-7.1.4.2-2.x86_64
14/48 Verifying : libobasis7.1-core-7.1.4.2-2.x86_64
15/48 Verifying :
libobasis7.1-extension-report-builder-7.1.4.2-2.x86_64
16/48 Verifying : libreoffice7.1-math-7.1.4.2-2.x86_64
17/48 Verifying : libobasis7.1-librelogo-7.1.4.2-2.x86_64
18/48 Verifying : libX11-1.6.7-5.el7_9.x86_64
19/48 Verifying : libobasis7.1-xsltfilter-7.1.4.2-2.x86_64
20/48 Verifying : libreoffice7.1-calc-7.1.4.2-2.x86_64
21/48 Verifying : libxcb-1.13-1.el7.x86_64
22/48 Verifying : libobasis7.1-kde-integration-7.1.4.2-2.x86_64
23/48 Verifying :
libobasis7.1-extension-javascript-script-provider-7.1.4.2-2.x86_64
24/48 Verifying : libobasis7.1-ooofonts-7.1.4.2-2.x86_64
25/48 Verifying :
libobasis7.1-extension-beanshell-script-provider-7.1.4.2-2.x86_64
26/48 Verifying : libobasis7.1-impress-7.1.4.2-2.x86_64
27/48 Verifying : libreoffice7.1-freedesktop-menus-7.1.4-2.noarch
28/48 Verifying : libobasis7.1-ogltrans-7.1.4.2-2.x86_64
29/48 Verifying : libobasis7.1-math-7.1.4.2-2.x86_64
30/48 Verifying : libobasis7.1-en-US-7.1.4.2-2.x86_64
31/48 Verifying : libreoffice7.1-impress-7.1.4.2-2.x86_64
32/48 Verifying : libobasis7.1-postgresql-sdbc-7.1.4.2-2.x86_64
33/48 Verifying : libobasis7.1-graphicfilter-7.1.4.2-2.x86_64
34/48 Verifying : libobasis7.1-pyuno-7.1.4.2-2.x86_64
35/48 Verifying :
libobasis7.1-libreofficekit-data-7.1.4.2-2.x86_64
36/48 Verifying : libreoffice7.1-dict-es-7.1.4.2-2.x86_64
37/48 Verifying : libreoffice7.1-dict-en-7.1.4.2-2.x86_64
38/48 Verifying : libreoffice7.1-draw-7.1.4.2-2.x86_64
39/48 Verifying :
libobasis7.1-python-script-provider-7.1.4.2-2.x86_64
40/48 Verifying : libobasis7.1-firebird-7.1.4.2-2.x86_64
41/48 Verifying : libreoffice7.1-base-7.1.4.2-2.x86_64
42/48 Verifying : libreoffice7.1-dict-fr-7.1.4.2-2.x86_64
43/48 Verifying : libobasis7.1-ooolinguistic-7.1.4.2-2.x86_64
44/48 Verifying : libobasis7.1-draw-7.1.4.2-2.x86_64
45/48 Verifying : libXau-1.0.8-2.1.el7.x86_64
46/48 Verifying : libobasis7.1-writer-7.1.4.2-2.x86_64
47/48 Verifying :
libobasis7.1-extension-pdf-import-7.1.4.2-2.x86_64
48/48

Installed: libobasis7.1-base.x86_64 0:7.1.4.2-2
libobasis7.1-calc.x86_64 0:7.1.4.2-2
libobasis7.1-core.x86_64 0:7.1.4.2-2
libobasis7.1-draw.x86_64 0:7.1.4.2-2
libobasis7.1-en-US.x86_64 0:7.1.4.2-2
libobasis7.1-extension-beanshell-script-provider.x86_64 0:7.1.4.2-2
libobasis7.1-extension-javascript-script-provider.x86_64 0:7.1.4.2-2
libobasis7.1-extension-mediawiki-publisher.x86_64 0:7.1.4.2-2
libobasis7.1-extension-nlpsolver.x86_64 0:7.1.4.2-2
libobasis7.1-extension-pdf-import.x86_64 0:7.1.4.2-2
libobasis7.1-extension-report-builder.x86_64 0:7.1.4.2-2
libobasis7.1-firebird.x86_64 0:7.1.4.2-2
libobasis7.1-gnome-integration.x86_64 0:7.1.4.2-2
libobasis7.1-graphicfilter.x86_64 0:7.1.4.2-2
libobasis7.1-images.x86_64 0:7.1.4.2-2
libobasis7.1-impress.x86_64 0:7.1.4.2-2
libobasis7.1-kde-integration.x86_64 0:7.1.4.2-2
libobasis7.1-librelogo.x86_64 0:7.1.4.2-2
libobasis7.1-libreofficekit-data.x86_64 0:7.1.4.2-2
libobasis7.1-math.x86_64 0:7.1.4.2-2
libobasis7.1-ogltrans.x86_64 0:7.1.4.2-2
libobasis7.1-onlineupdate.x86_64 0:7.1.4.2-2
libobasis7.1-ooofonts.x86_64 0:7.1.4.2-2
libobasis7.1-ooolinguistic.x86_64 0:7.1.4.2-2
libobasis7.1-postgresql-sdbc.x86_64 0:7.1.4.2-2
libobasis7.1-python-script-provider.x86_64 0:7.1.4.2-2
libobasis7.1-pyuno.x86_64 0:7.1.4.2-2
libobasis7.1-writer.x86_64 0:7.1.4.2-2
libobasis7.1-xsltfilter.x86_64 0:7.1.4.2-2
libreoffice7.1.x86_64 0:7.1.4.2-2
libreoffice7.1-base.x86_64 0:7.1.4.2-2
libreoffice7.1-calc.x86_64 0:7.1.4.2-2
libreoffice7.1-dict-en.x86_64 0:7.1.4.2-2
libreoffice7.1-dict-es.x86_64 0:7.1.4.2-2
libreoffice7.1-dict-fr.x86_64 0:7.1.4.2-2
libreoffice7.1-draw.x86_64 0:7.1.4.2-2
libreoffice7.1-en-US.x86_64 0:7.1.4.2-2
libreoffice7.1-freedesktop-menus.noarch 0:7.1.4-2
libreoffice7.1-impress.x86_64 0:7.1.4.2-2
libreoffice7.1-math.x86_64 0:7.1.4.2-2
libreoffice7.1-ure.x86_64 0:7.1.4.2-2
libreoffice7.1-writer.x86_64 0:7.1.4.2-2

Dependency Installed: libX11.x86_64 0:1.6.7-5.el7_9
libX11-common.noarch 0:1.6.7-5.el7_9 libXau.x86_64
0:1.0.8-2.1.el7 libXext.x86_64 0:1.3.3-3.el7
libXinerama.x86_64 0:1.1.3-2.1.el7 libxcb.x86_64
0:1.13-1.el7

Complete!

6、切换到/opt/libreoffice7.1/program目录下

 cd  /opt/libreoffice7.1/program

7、执行./soffice --version

./soffice --version

8、这时会出现报错:

在这里插入图片描述
在这里插入图片描述

/opt/libreoffice7.1/program/soffice.bin: error while loading shared
libraries: libcairo.so.2: cannot open shared object file: No such file
or directory

/opt/libreoffice7.1/program/soffice.bin: error while loading shared
libraries: libSM.so.6: cannot open shared object file: No such file or
directory

解决办法:

yum install cairo -y
yum install cups-libs -y
yum install libSM -y

8、接着更新依赖

yum install -y libreoffice-headless

9、最后执行./soffice --version,发现已经安装成功!
在这里插入图片描述
在这里插入图片描述

2、安装 kkFileView

1、下载或者上传安装包

wget https://kkfileview.keking.cn/kkFileView-4.0.0.tar.gz

在这里插入图片描述

(我这里用的版本4.2.1的,也可以用4.0.0)

2、进行解压

tar -zxvf kkFileView-4.0.0.tar.gz  或者我的版本: tar -zxvf kkFileView-4.2.1.tar.gz 

在这里插入图片描述
3、把office.home改成自己安装的libreoffice7.1

vi kkFileView-4.0.0/config/application.properties

#把office.home改成自己安装的libreoffice7.1

office.home = /opt/libreoffice7.1
在这里插入图片描述

4、检查是否启动LibreOffice,启动kkfileview之前要保证LibreOffice没有启动,为了确保查出所有office进程

ps -ef|grep office
 
kill -9 {pid}

上面并没有启动LibreOffice,无需查杀.

5、进行启动:

cd   /kkFileView/kkFileView-4.2.1/bin
./startup.sh

在这里插入图片描述
6、查看启动日志

cd  /kkFileView/kkFileView-4.2.1/log
 cat kkFileView.log 

在这里插入图片描述
7、开放端口:

firewall-cmd --zone=public --add-port=8012/tcp --permanent
#重新加载防火墙
firewall-cmd --reload
#查询是否开通
firewall-cmd --query-port=8012/tcp

在这里插入图片描述

8、输入ip:8012/,进行访问,大功告成

在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1877261.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

HarmonyOS开发:应用完整性校验

简介 为了确保应用的完整性和来源可靠,OpenHarmony需要对应用进行签名和验签。 应用开发阶段: 开发者完成开发并生成安装包后,需要开发者对安装包进行签名,以证明安装包发布到设备的过程中没有被篡改。OpenHarmony的应用完整性校…

推理之巅 超云为先|2024中国智算中心全栈技术大会,超云引领AI算力新趋势

在AI技术日新月异的浪潮中,算力作为推动数字经济发展的关键力量,正迎来全新的发展机遇。 6月25日至27日,以“AI赋能,重构未来”为主题的2024中国智算中心全栈技术大会、第5届中国数据中心绿色能源大会暨第10届中国(上…

在本地和Linux之间传输文件

1.打开本地的cmd窗口 2. 然后按这个链接的说法在cmd中远程连接Linux(技术|如何在 Linux 中使用 sFTP 上传或下载文件与文件夹) 3. 看这个链接里面的sftp命令进行本地和Linux之间的文件互传 (https://www.cnblogs.com/niuben/p/13324099.htm…

【机器学习】阿里Qwen-VL:基于FastAPI私有化部署你的第一个AI多模态大模型

目录 一、引言 二、Qwen-VL 介绍 2.1 Qwen-VL 特点 2.2 Qwen-VL 原理 2.3 Qwen-VL 模型结构 三、FastAPI封装Qwen-VL大模型服务接口 3.1 FastAPI 极简入门 3.1.1 FastAPI 3.1.2 uvicorn 3.1.3 pydantic 3.2 QwenVL-API服务端 3.2.1 代码示例 3.2.2 代码详解 3.…

机器人控制系列教程之关节空间运动控制器搭建(1)

机器人位置控制类型 机器人位置控制分为两种类型: 关节空间运动控制—在这种情况下,机器人的位置输入被指定为一组关节角度或位置的向量,这被称为机器人的关节配置,记作q。控制器跟踪一个参考配置,记作 q r e f q_{re…

WordPress Quiz Maker插件 SQL注入漏洞复现(CVE-2024-6028)

0x01 产品简介 WordPress Quiz Maker插件是一款功能强大的测验生成工具,旨在帮助用户轻松、快速地构建复杂的测验和考试。插件支持多种问题类型,包括单选框(MCQ)、复选框(MCQ)、下拉列表(MCQ)、文本、短文本、数字、日期等。还支持横幅(HTML)显示信息性消息、填空题…

权限维持-域环境单机版---映像劫持(多)

目录 映像位置: 测试:执行 notepad 成 cmd 配合GlobalFlag隐藏-->执行正常关闭后触发 映像位置: 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe 测试:执行 notepad 成 cmd…

数据结构--堆(图文)

在开始学习堆之前,我们要先简单了解二叉树 二叉树 一棵二叉树是结点的一个有限集合,该集合: 为空由一个根结点加上两棵子树(左子树和右子树) 特殊的二叉树: 满二叉树:一个二叉树,如果每一…

python 第6册 辅助excel 002 批量创建非空白的 Excel 文件

---用教授的方式学习 此案例主要通过使用 while 循环以及 openpyxl. load_workbook()方法和 Workbook 的 save()方法,从而实现在当前目录中根据已经存在的Excel 文件批量创建多个非空白的Excel 文件。当运行此案例的Python 代码(A002.py 文件&#xff0…

Ubuntu20.04安装vimplus插件

参考文章: Ubuntu Linux下vimplus的安装及使用安装vimplus之后乱码问题解决 1、安装步骤: $ git clone https://github.com/chxuan/vimplus.git ~/.vimplus$ cd ~/.vimplus$ ./install.sh2、./install.sh 过程 出现选择是否备份 /home/yin-roc/.vim…

制造企业用AI可以做什么?

ChatGPT横空出世,有关AI的浪潮席卷全球,比起人工智能如何改变世界,可能你更感兴趣我能用AI可以做的事情是什么? 制造企业用AI可以做的事情是什么?人工智能在制造企业中可以做很多事情,以下是一些主要的应用&#xff1…

冯雷老师:618大退货事件分析

近日冯雷老师受邀为某头部电商36名高管进行培训,其中聊到了今年618退货潮的问题。以下内容整理自冯雷老师的部分授课内容。 一、引言 随着电子商务的蓬勃发展,每年的618大促已成为消费者和商家共同关注的焦点。然而,在销售额不断攀升的同时…

夏天到了,用这两款软件,悄悄惊艳所有人!

哈喽,各位小伙伴们好,我是给大家带来各类黑科技与前沿资讯的小武。 夏天来了,又到了“露肉”的季节,或许大家会为了身材烦恼,即便有运动意愿却苦于健身计划和时间上安排,也没有合适的免费软件。 别担心&a…

React+TS前台项目实战(十九)-- 全局常用组件封装:带加载状态和清除等功能的Input组件实现

文章目录 前言Input组件1. 功能分析2. 代码详细注释3. 使用方式4. 效果展示 总结 前言 今天我们来封装一个input输入框组件,并提供一些常用的功能,你可以选择不同的 尺寸、添加前缀、显示加载状态、触发回调函数、自定义样式 等等。这些功能在这个项目中…

JAVA高级进阶13单元测试、反射、注解

第十三天、单元测试、反射、注解 单元测试 介绍 单元测试 就是针对最小的功能单元(方法),编写测试代码对其进行正确性测试 咱们之前是如何进行单元测试的? 有啥问题 ? 只能在main方法编写测试代码,去调用其他方法进行测试。 …

老牌开源解压缩工具 7-Zip 24.07 更新发布

数据的压缩与解压已成为日常操作中不可或缺的一部分,无论是为了节省存储空间、加速文件传输,还是方便管理和归档。在众多压缩工具中,7-Zip 以其开源免费、高效能和强大的压缩率脱颖而出,成为众多用户的首选。 开发历史 7-Zip 由 …

【效率提升】新一代效率工具平台utools

下载地址:utools uTools这款软件,是一款功能强大且高度可定制的效率神器,使用快捷键alt space(空格) 随时调用,支持调用系统应用、用户安装应用和市场插件等。 utools可以调用系统设置和内置应用,这样可以方便快捷的…

基于Java的地方废物回收机构管理系统

你好呀,我是计算机学姐码农小野!如果有相关需求,可以私信联系我。 开发语言:Java 数据库:MySQL 技术:Java技术,MIS的总体思想,MySQL数据库 工具:Eclipse,…

【计算机毕业设计】073智慧旅游平台开发微信小程序

🙊作者简介:拥有多年开发工作经验,分享技术代码帮助学生学习,独立完成自己的项目或者毕业设计。 代码可以私聊博主获取。🌹赠送计算机毕业设计600个选题excel文件,帮助大学选题。赠送开题报告模板&#xff…