需要安装java,要在java环境下运行, 安装java
1.下载openoffice, office官网:http://www.openoffice.org/download/other.html
2.下载地址:https://jaist.dl.sourceforge.net/project/openofficeorg.mirror/4.1.5/binaries/zh-CN/Apache_OpenOffice_4.1.5_Linux_x86-64_install-rpm_zh-CN.tar.gz
3.开始下载 wget '上面的网址'
4.tar -zxvf Apache_OpenOffice_4.1.5_Linux_x86-64_install-rpm_zh-CN.tar.gz
5.cd zh-CN
6.cd RPMS
7.rpm -ivh *.rpm
8.cd desktop-integration
9.rpm -ivh openoffice4.1.5-redhat-menus-4.1.5-9789.noarch.rpm
安装完毕
10.启动服务:
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
11.关闭服务, 杀掉进程就可以了
ps -ef | grep soffice 查出进程