1. Download RPM installation package in OpenOffice http://www.openoffice.org/zh-cn/
2, upload to the archive package (apache_openoffice_4.1.1_linux_x86-64_install-rpm_zh-cn.tar.gz) to the CentOS server,
Tar zxvf apache_openoffice_4.1.1_linux_x86-64_install-rpm_zh-cn.tar.gz
Get ZH-CN folder after decompression
3. Edit the yum.conf file
Vi/etc/yum.conf
Add a row
[Main]
exclude=openoffice.org-ure* libreoffice-ure*
4. Enter the Zh-cn folder for RPM installation
CD ZH-CN
RPM-UVH rpms/*.rpm rpms/desktop-integration/openoffice4.1.1-redhat-*.rpm
5, after the installation of the default directory is in:/opt/directory, open OpenOffice.org monitoring service
/opt/openoffice4/program/soffice-headless-accept= "SOCKET,HOST=127.0.0.1,PORT=8100;URP;"-nofirststartwizard &
5. Install Java
Yum Install Java-y
6, download Jodconverter-2.2.2.zip compressed package, upload to the server decompression
7. Execute the conversion command, Java call Jodconverter-cli-2.2.2.jar
Java-jar/home/jodconverter-2.2.2/lib/jodconverter-cli-2.2.2.jar/home/1.doc/home/1.html
8, PHP by executing the above command exec, if the Exec invalid remember to check php.ini disable_functions there is no way to disable this method
CentOS 7 Installation OpenOffice & Java & Jodconverter