1、下载压缩包http://www.openoffice.org/download/index.html

[[email protected] 下载]# mdkir /opt/openoffice

[[email protected] 下载]# tar -xvf Apache_OpenOffice_4.1.5_Linux_x86-64_install-rpm_zh-CN.tar.gz -C /opt/openoffice/

2、删除之前安装的OpenOffice 

[[email protected] 下载]# yum remove openoffice* libreoffice*

3、进入安装文件夹

[[email protected] 下载]# cd /opt/openoffice/zh-CN/RPMS

4、安装

[[email protected] RPMS]# rpm -Uvh *.rpm  desktop-integration/openoffice4.1.5-redhat-*.rpm

centos7--(3)安装openoffice

5、启动--设置启动

[[email protected] RPMS]# openoffice4

centos7--(3)安装openoffice

成功

后台启动:

[[email protected] openoffice4]# cd /opt/openoffice4/program/
[[email protected] program]# soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &

centos7--(3)安装openoffice

查看启动是否成功

设置开机自启动:

[[email protected] program]# vi /etc/rc.local

添加如下内容:

soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard & 

 

OK了

 

参考文章:https://www.tecmint.com/install-apache-openoffice-on-centos-fedora-ubuntu/

 

相关文章: