linux下的openoffice安装和服务自启动

  • openoffice下载并安装

 

      wget http://sourceforge.net/projects/openofficeorg.mirror/files/4.1.1/binaries/zh-CN/Apache_OpenOffice_4.1.1_Linux_x86-64_install-rpm_zh-CN.tar.gz 
      tar -xzvf Apache_OpenOffice_4.1.1_Linux_x86-64_install-rpm_zh-CN.tar.gz
      cd zh-CN
      cd RPMS
      rmp -ivh *.rpm

 

  • openoffice服务自启动
  1. 创建自启动脚本/etc/init.d/openoffice,并添加以下脚本内容

 

       #!/bin/bash 
       #chkconfig: 2345 80 90
       #description:auto_run
       #openoffice4 start service
       /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &

 

  1. 设置openoffice为linux服务模式

 

       chmod 755 openoffice
       chkconfig  ––add openoffice
       chkconfig openoffice on
       chkconfig –list
       ps aux|grep openoffice


 


 

posted @ 2015-03-19 17:18  wala-wo  阅读(495)  评论(0编辑  收藏  举报