openOffice安装包官网下载地址 openoffice下载
一、windows 安装
下载exe安装文件后,按照提示下一步进行安装。
默认安装路径为:C:\Program Files (x86)\OpenOffice 4
在命令窗口定位到安装路径,执行启动命令
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
二、linux 安装
1、解压安装包
Apache_OpenOffice_4.1.14_Linux_x86-64_install-rpm_zh-CN.tar.gz代表下载的压缩包的文件名,根据下载的文件名进行替换
tar -zxvf Apache_OpenOffice_4.1.14_Linux_x86-64_install-rpm_zh-CN.tar.gz
2、执行安装命令
openoffice4.1.14-redhat-menus-4.1.14-9811.noarch.rpm,根据下载版本替换文件名
cd zh-CN/RPMS
rpm -Uvh *.rpm desktop-integration/openoffice4.1.14-redhat-menus-4.1.14-9811.noarch.rpm
3、运行
先定位到安装路径,再执行安装命令
cd /opt/openoffice4/program
nohup soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
4、关闭
可通过 ps -e | grep soffice 找到openoffice 的进程数,然后通过 kill 进程数关闭,
这里查找到的有两个,用的是soffice.bin
也可用 netstat -tlnp | grep 8100 查看进程数,然后 kill 进程数