天天看點

CentOS 7 Linux 安裝 openoffice

安裝媒體:

 https://sourceforge.net/projects/openofficeorg.mirror/files/4.1.4/binaries/zhCN/Apache_OpenOffice_4.1.4_Linux_x86-64_install-rpm_zh-CN.tar.gz/download

編譯安裝:

      本人資源包放在 /opt/aa中, 解壓後放在 /opt/softwares 中

解壓 openoffice 包

[[email protected] aa]# tar -zxvf Apache_OpenOffice_4.1.4_Linux_x86-64_install-rpm_zh-CN.tar.gz  -C ../softwares/

解壓之後會在 /opt/softwares 中生成 

CentOS 7 Linux 安裝 openoffice

 檔案夾,進入

CentOS 7 Linux 安裝 openoffice

CentOS 7 Linux 安裝 openoffice

檔案夾。

[[email protected] moudles]# cd /opt/softwares/zh-CN/RPMS

 運作 yum localinstall *.rpm

[[email protected] RPMS]# yum localinstall *.rpm

成功之後會在目前目錄生成 

CentOS 7 Linux 安裝 openoffice

檔案夾,運作 yum localinstall 。

[[email protected] desktop-integration]# yum localinstall openoffice4.1.4-redhat-menus-4.1.4-9788.noarch.rpm

安裝成功會在 /opt 目錄下生成 

CentOS 7 Linux 安裝 openoffice

 檔案夾。

注意:安裝過程中 會提示Is this ok?直接選擇y即可。

啟動: 

    臨時啟動: 臨時啟動之後畫面就不會動了, 不要認為是當機,不報錯就行。

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

   永久啟動:

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

檢視是否啟動成功:

[[email protected] opt]# ps -ef|grep openoffice
CentOS 7 Linux 安裝 openoffice

 檢視端口:

[[email protected] opt]# netstat -lnp |grep 8100
CentOS 7 Linux 安裝 openoffice

說明啟動成功, 大功告成!

參考:https://www.cnblogs.com/goodcheap/p/7929986.html

繼續閱讀