过程
1、解压
tar -xzvf Apache_OpenOffice_4.1.6_Linux_x86-64_install-rpm_zh-CN.tar.gz
2、安装
cd zh-CN/RPMS
rpm -ivh *.rpm
cd desktop-integration/
rpm -ivh openoffice4.1.6-redhat-menus-4.1.6-9790.noarch.rpm
3、启动服务
<!--默认安装路径-->
cd /opt/openoffice4/program
soffice --headless--accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard&
<!--查看-->
ps -ef |grep 8100
后台启动
nohup /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
乱码
放在linux平台会出现乱码的情况。将Windows下的C:\Windows\Fonts 目录下的文件完整拷贝到Linux下的 /usr/share/fonts目录。然后依次执行
mkfontscale
fontdir
fc-cache
使字体生效。