1 說明
本文檔采用rpm包方式安裝,操作系統為centos
2 下載openoffice rpm包
創建nginx源碼包存放目錄
mkdir /usr/local/src/openoffice
cd /usr/local/src/openoffice
wget 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 解壓安裝
tar xf Apache_OpenOffice_4.1.5_Linux_x86-64_install-rpm_zh-CN.tar.gz
解壓后會在當前目錄里生成一個zh-CN目錄
cd /usr/local/src/ openoffice /zh-CN/RPMS/
yum localinstall *.rpm
裝完后會在當前目錄下生成一個desktop-integration目錄
cd /usr/local/src/zh-CN/RPMS/desktop-integration/
yum localinstall openoffice4.1.5-redhat-menus-4.1.5-9789.noarch.rpm
4 啟動openoffice
臨時啟動
/opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
放入后台永久運行
nohup /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
加入到開機自啟動
vim /etc/rc.local
nohup /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
查看openoffice進程

