# 对一下时间,时间不准,解压不了
yum install -y ntp unzipntpdate -u 202.112.10.36yum install libXext.x86_64 -yyum groupinstall "X Window System" -ycd /usr/local/software/OpenOfficerpm -ivh jdk-7u80-linux-x64.rpmtar -zxvf Apache_OpenOffice_4.1.4_Linux_x86-64_install-rpm_zh-CN.tar.gztar -zxvf Apache_OpenOffice_4.1.4_Linux_x86-64_langpack-rpm_zh-CN.tar.gzcd zh-CN/cd RPMS/yum localinstall -y *.rpmcd desktop-integration/yum localinstall -y openoffice4.1.4-redhat-menus-4.1.4-9788.noarch.rpmmkdir -p /usr/java/jdk1.7.0_80/jre/lib/fonts/fallbackcd /usr/local/software/OpenOfficecp simhei.ttf /usr/java/jdk1.7.0_80/jre/lib/fonts/fallback/simhei.ttfcp simsun.ttc /usr/java/jdk1.7.0_80/jre/lib/fonts/fallback/simsun.ttc# 安装系统字体yum install fontconfig -y yum install mkfontscale -ymkdir /usr/share/fonts/winFontscp simhei.ttf /usr/share/fonts/winFonts/simhei.ttfcp simsun.ttc /usr/share/fonts/winFonts/simsun.ttccd /usr/share/fonts/winFontschmod 755 *.ttfmkfontscalemkfontdirfc-cache -fvsource /etc/profileunzip jodconverter-2.2.2.zip# 启动soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &# 测试转换cd /usr/local/software/OpenOffice java -jar /usr/local/software/OpenOffice/jodconverter-2.2.2/lib/jodconverter-cli-2.2.2.jar 1.ppt 111.pdf链接: 密码:33xj