Linux 下安装 libreoffice 实现word转换pdf
1、解压插件
tar -zxvf LibreOffice_5.2.7_Linux_x86-64_rpm.tar.gz tar -zxvf LibreOffice_5.2.7_Linux_x86-64_rpm_helppack_zh-CN.tar.gz tar -zxvf LibreOffice_5.2.7_Linux_x86-64_rpm_langpack_zh-CN.tar.gz
2、安装插件(根据解压路径自行修改)
yum install ./LibreOffice_5.2.7_Linux_x86-64_rpm/RPMS/*.rpm yum install ./LibreOffice_5.2.7_Linux_x86-64_rpm_helppack_zh-CN/RPMS/*.rpm yum install ./LibreOffice_5.2.7_Linux_x86-64_rpm_langpack_zh-CN/RPMS/*.rpm
3、设置libreoffice为系统服务,并启动该服务
(1)libreoffice安装后可执行文件目录: /opt/libreoffice5.2/program/soffice (2)在PATH环境变量中添加libreoffice的路径: /opt/libreoffice5.2/program/ (3)在目录/etc/init.d/下新建文件libreoffice,编辑内容为: /opt/libreoffice5.2/program/soffice --headless --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard & (4)建立符号连接文件 cd /etc/rc3.d/ ln -sf /etc/init.d/libreoffice S80libreoffice (5)启动libreoffice service libreoffice export DISPLAY=192.168.1.244:0.0
资源下载地址:libreoffice安装包下载地址
来源:51CTO
作者:
链接:https://blog.csdn.net/weixin_42484547/article/details/100701527