Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build OpenOffice on CentOS7 Server

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the CentOS7 server how to build OpenOffice, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

Reference documentation link:

Https://www.openoffice.org/download/common/instructions.html

Https://wiki.openoffice.org/wiki/Documentation/FAQ/Installation

Http://zh-cn.libreoffice.org/get-help/install-howto/linux/

Wget https://jaist.dl.sourceforge.net/project/openofficeorg.mirror/4.1.3/binaries/zh-CN/Apache_OpenOffice_4.1.3_Linux_x86-64_install-rpm_zh-CN.tar.gztar-zxvf Apache_OpenOffice_4.1.3_Linux_x86-64_install-rpm_zh-CN.tar.gzmv zh-CN Apache_OpenOffice_4.1.3_Linux_x86-64_install-rpm_zh-CN / / the decompressed folder is zh-CN. To facilitate identification, rename cd Apache_OpenOffice_4.1.3_Linux_x86-64_install-rpm_zh-CN/RPMSrpm-Uvih * rpm self-launch

Modify script file

Vim / etc/rc.d/rc.local

Add the following script to the end of the file

/ opt/openoffice4/program/soffice-accept= "socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager"-headless-nofirststartwizard-nologo &

If the file does not have execution permission, it is given execution permission

Chmod + x / etc/rc.d/rc.local

The following is the way to start using systemd, but there will be a cpu occupancy rate of 100%. Make a record first, not for the time being.

Create a startup file

Vim / usr/lib/systemd/system/openoffice.service

[Unit] Description=OpenOffice serviceAfter= syslog.target [service] Environment= "JAVA_HOME=/opt/java/default" ExecStart=/opt/openoffice4/program/soffice-- accept= "socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager"-- headless-- nofirststartwizard-- nologoRestart=alwaysKillSignal=SIGQUITType=simpleStandardError=syslogNotifyAccess=allUser= tomcat [install] WantedBy=multi-user.target

Openoffice self-starting

Systemctl daemon-reloadsystemctl enable openofficesystemctl start openofficeLibreOffice

You can also use LibreOffice as a document conversion service, but it is better to convert word to html than OpenOffice.

Wget http://mirrors.ustc.edu.cn/tdf/libreoffice/stable/5.2.6/rpm/x86_64/LibreOffice_5.2.6_Linux_x86-64_rpm.tar.gztar-zxvf LibreOffice_5.2.6_Linux_x86-64_rpm.tar.gzcd LibreOffice_5.2.6.2_Linux_x86-64_rpm/RPMSyum install * .rpm# to uninstall, use the following command yum remove libreoffice*

If libreoffice is used, the startup parameters are:

ExecStart=/usr/bin/soffice-- accept= "socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager"-- headless-- nofirststartwizard-- nologo-- nocrashreport-- nolockcheck# or ExecStart=/usr/bin/soffice-- accept= "socket,host=localhost,port=8100;urp;StarOffice.ServiceManager"-- headless-- nofirststartwizard-- nologo-- nodefault-- nocrashreport-nolockcheck-- norestore# or ExecStart=/opt/libreoffice5.2/program/soffice-- accept= "socket,host=127.0.0.1,port=8100;urp StarOffice.ServiceManager "--headless-- nofirststartwizard-- nologo-- nodefault-- nocrashreport-- nolockcheck Thank you for reading this article carefully. I hope the article" how to build OpenOffice on CentOS7 Server "shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report