ainila 发表于 2019-2-15 17:48:40

CentOS7.5中安装openoffice

  
1 说明
  本文档采用rpm包方式安装,操作系统为centos7.5,注意需要安装图形界面
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进程
http://s1.运维网.com/images/20180923/1537701106721405.png



页: [1]
查看完整版本: CentOS7.5中安装openoffice