linux下安装kkFileView4

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 officekill -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.rhkb.cn/news/366949.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

复制 pdf 的表格到 markdown 版本的Typora 或者 word 中

在 pdf 中选中复制表格内容,直接粘贴到 typora 中失败,可以使用 txt文件和 excel 做过渡。 准备一个空的 txt 文件,将 pdf 中表格的数据复制粘贴到txt文件中,文本内容会以空格分开,如下图的形式: 打开 exc…

深入学习 Kafka(2)- Partition 和 Topic

1. Partition的作用 Topic是逻辑的概念,Partition是物理的概念: Partition 对一个 Topic 的消息进行物理上的分离,让消息可以分布在不同的实体机器上,可以提升系统吞吐量和并行处理能力。每个Partition可以有多个副本&#xff08…

Windows 获取打印机及端口号方法 (C#)

1. 打开注册表编辑器 regedit 2.选择如下配置 计算机\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Device 其中 “Ne01:” 为端口号 3. 代码 C# using System; using Microsoft.Win32;class Program {static void Main(){string registryPath "SOF…

【C语言】分支(选择)和循环语句

目录 简述选择语句简述if语句单if结构语法格式 if-else结构语法结构 语法结构 循环结构break和continuewhile循环语法结构 for循环语法结构 do while循环语法结构 简述 在c语言中分支和循环语句是极其重要的,就像生活中你难免要做一些判断和循环往复做一些事。 选…

静态IP代理:保障网络稳定的核心技术

静态IP代理作为一种重要的网络工具,因其稳定性和持久性,受到越来越多用户的青睐。本文将深入探讨静态IP代理的定义和优势。 静态IP代理是什么? 静态IP代理是指在代理服务器中分配一个固定的IP地址,用户在使用过程中始终使用同一个…

【CSS in Depth 2 精译】2.2 em 和 rem + 2.2.1 使用 em 定义字号

当前内容所在位置 第一章 层叠、优先级与继承第二章 相对单位 2.1 相对单位的威力 2.1.1 响应式设计的兴起 2.2 em 与 rem ✔️ 2.2.1 使用 em 定义字号 ✔️2.2.2 使用 rem 设置字号 2.3 告别像素思维2.4 视口的相对单位2.5 无单位的数值与行高2.6 自定义属性2.7 本章小结 2.…

linux和mysql基础指令

Linux中nano和vim读可以打开记事文件。 ifdown ens33 ifup ens33 关闭,开启网络 rm -r lesson1 gcc -o code1 code1.c 编译c语言代码 ./code1 执行c语言代码 rm -r dir 删除文件夹 mysql> show databases-> ^C mysql> show databases; -------…

面对全球新能源汽车合作发展创维汽车如何实现共赢

由全球新能源汽车合作组织(筹)主办、中国电动汽车百人会承办的首届全球新能源汽车合作发展论坛(GNEV2024)于6月27日,6月28日在新加坡金沙会议展览中心召开。创维汽车国际营销公司总经理齐奎源受邀参会并作出分享。 本届大会以推动全球新能源汽车产业协同发展与合作…

RK3568平台(USB篇)USB HID设备

一.USB HID设备简介 USB HID设备主要用于和计算机进行交互通信,典型的USB HID类设备包括USB键盘、USB鼠标、USB游戏手柄等等,这些都是日常生活中常见的设备。以USB接口的鼠标为例,打开计算机的“设备管理器”,可以在“鼠标和其他…

设计高并发秒杀系统:保障稳定性与数据一致性

✨✨谢谢大家捧场,祝屏幕前的小伙伴们每天都有好运相伴左右,一定要天天开心哦!✨✨ 🎈🎈作者主页: 喔的嘛呀🎈🎈 目录 引言 一. 系统架构设计 1. 系统架构图 二、 系统流程 三…

简单实现Anaconda/Miniforge虚拟环境的克隆和迁移

简单实现Anaconda/Miniforge虚拟环境的克隆和迁移 一、问题描述一、方式一:使用命令克隆二、方式二:直接复制粘贴 欢迎学习交流! 邮箱: z…1…6.com 网站: https://zephyrhours.github.io/ 一、问题描述 使用Anaconda…

昇思25天学习打卡营第7天|Pix2Pix实现图像转换

文章目录 昇思MindSpore应用实践基于MindSpore的Pix2Pix图像转换1、Pix2Pix 概述2、U-Net架构定义UNet Skip Connection Block 2、生成器部分3、基于PatchGAN的判别器4、Pix2Pix的生成器和判别器初始化5、模型训练6、模型推理 Reference 昇思MindSpore应用实践 本系列文章主要…

无忧易售升级:产品视频翻译支持,拓宽全球市场边界

在电商内容营销迈入视频时代的今天,无忧易售ERP推出针对OZON、Wish、TikTok、Wildberries(野莓)四大平台的产品视频翻译功能,彻底打破语言壁垒,让全球卖家的商品故事,以更生动、更直观的方式,触…

Linux指定文件权限的两种方式-符号与八进制数方式示例

一、指定文件权限可用的两种方式: 对于八进制数指定的方式,文件权限字符代表的有效位设为‘1’,即“rw-”、“rw-”、“r--”,以二进制表示为“110”、“110”、“100”,再转换为八进制6、6、4,所以777代表…

如何寻找一个领域的顶级会议,并且判断这个会议的影响力?

如何寻找一个领域的顶级会议,并且判断这个会议的影响力? 会议之眼 快讯 很多同学都在问:学术会议不是期刊,即使被SCI检索,也无法查询影响因子。那么如何知道各个领域的顶级会议,并对各个会议有初步了解呢…

Redis主从复制、哨兵以及Cluster集群

目录 1.Redis高可用 2.Redis主从复制 2.1 主从复制的作用 2.2 主从复制流程 2.3 搭建Redis 主从复制 ​3.Redis哨兵模式 3.1 哨兵模式概述 3.2 哨兵模式的作用 3.3 故障转移机制 ​3.4 主节点的选举 3.5 搭建Redis哨兵模式 4. Redis 群集模式 4.1 Redis集群的数据分…

VS2022+Qt+OpenCV Debug模式下,循环中格式转换引起的内存异常问题 debug_heap.cpp

文章目录 前言一、问题二、报错1.提示图片2.提示堆栈3.反汇编位置 三、解决办法总结 前言 最近在使用VS2022,C,OpenCV,Qt开发时,遇到了一个疑难杂症-在循环中执行字符串格式转换会触发内存异常,经过痛苦的排查过程&am…

python自动化运维--DNS处理模块dnspython

1.dnspython介绍 dnspython是Pyhton实现的一个DNS工具包,他几乎支持所有的记录类型,可以用于查询、传输并动态更新ZONE信息,同事支持TSIG(事物签名)验证消息和EDNS0(扩展DNS)。在系统管理方面&a…

从零开始实现大语言模型(二):文本数据处理

1. 前言 神经网络不能直接处理自然语言文本,文本数据处理的核心是做tokenization,将自然语言文本分割成一系列tokens。 本文介绍tokenization的基本原理,OpenAI的GPT系列大语言模型使用的tokenization方法——字节对编码(BPE, byte pair en…

认识一下HttpMessageHandler处理管道

[S1208]HttpClient的默认管道结构 接下来我们通过如下的演示程序使用IHttpClientFactory工厂创建了 一个HttpClient对象,并查看其管道依次由哪些类型的HttpMessageHandler对象组成。如代码片段所示,我们定义了一个辅助方法PrintPipeline方法以递归的形式…