1.下載對應版本https://www.openoffice.org/download/index.html
2.上傳,我這裏是這個目錄(自定義的)
3.解壓,得到zh-CN目錄 # tar -zxvf Apache_OpenOffice_4.1.5_Linux_x86-64_install-rpm_zh-CN.tar.gz
4.安裝 # cd zh-CN/RPMS
# rpm -ivh *.rpm
# cd desktop-integration
# rpm -ivh openoffice4.1.5-redhat-menus-4.1.5-9789.noarch.rpm
5.啟動
# cd /opt/openoffice4/program
# nohup soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
6.查看啟動結果 # netstat -lnp |grep 8100
沒有記錄表示啟動失敗
7.解決失敗問題 # openoffice4
如果錯誤為:# no suitable windowing system found, exiting
解決:# yum groupinstall "X Window System"
如果錯誤為:#/opt/openoffice4/program/soffice.bin: error while loading shared libraries: libXext.so.6: cannot open shared object file: No such file or directory
解決:將libXext.so.6從/usr/lib64或者/usr/lib中複制過來,也沒有就安裝# yum install libXext.x86_64
如果錯誤為:# /opt/openoffice4/program/soffice.bin: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory
解決:將libfreetype.so.6從/usr/lib64或者/usr/lib中複制過來,也沒有就安裝# yum install freetype
8.問題解決完成,重新啟動服務,查看結果 ———————————————— 版權聲明:本文為CSDN博主「戴新美」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。 原文鏈接:https://blog.csdn.net/daixinmei/article/details/81353149