RPM安装方式
一、下载 openoffice rpm 包
1.方式一:wget
mkdir /root/xxx/openofficecd /root/xxx/openoffice# 注意使用的版本wget https://jaist.dl.sourceforge.net/project/openofficeorg.mirror/4.1.12/binaries/zh-CN/Apache_OpenOffice_4.1.12_Linux_x86-64_install-rpm_zh-CN.tar.gz
2.方式二:手动下载上传
下载地址:http://www.openoffice.org/zh-cn/ (需要下载rpm格式的)
二、解压安装
tar -xvzf Apache_OpenOffice_4.1.12_Linux_x86-64_install-rpm_zh-CN.tar.gz
解压后会在当前目录里生成一个zh-CN目录, RPMS/ 里面都是rpm文件,需要安装这些文件
cd /root/xxx/openoffice/zh-CN/RPMS/
rpm -ivh *.rpm
安装完后会在当前目录下生成一个desktop-integration目录
cd /root/xxx/openoffice/zh-CN/RPMS/desktop-integration/
rpm -ivh openoffice4.1.6-redhat-menus-4.1.5-9789.noarch.rpm
三、启动openoffice
/opt/openoffice4/program/soffice -headless -accept=“socket,host=127.0.0.1,port=8100;urp;” -nofirststartwizard
/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 &
# 在program文件夹下执行
rpm -erpm -qa |grep openofficerpm -qa |grep ooobasis
netstat -lnp |grep 8100
ps -ef|grep soffice
