0
点赞
收藏
分享

微信扫一扫

安装升级libreoffice

笙烛 2022-07-12 阅读 66

安装升级libreoffice

1.查看服务器版本

cat /etc/redhat-release
如果是centos7版本就安装 libreoffice6.3.tar.gz
如果是centos6版本就安装 libreoffice5.4.tar.gz

安装包去192.168.19上面下载 conversion.war的包也要下载

2.把文件上传到/speedec/webapps

解压 libreoffice6.3.tar.gz

3.进入解压目录安装
yum -y install *.rpm
4.查看安装的依赖是否缺少(缺少依赖自己找包安装上)
ldd /opt/libreoffice6.3/program/soffice.bin 
5.程序包解压到/speedec/webapps

如果是centos6版本的需要修改
vi conversion.war/WEB-INF/classes/config.properties

openoffice4.home=/opt/libreoffice5.4/   --修改成这样
6.安装字体

解压/speedec/fonts.zip

cd /usr/share/fonts
cp -rf  /speedec/chinesefonts  .    
cd chinesefonts/
mkfontscale
mkfontdir
fc-cache

vi /etc/fonts/fonts.conf --编辑配置文件

<!-- Font directory list -->
<dir>/usr/share/fonts</dir>
<dir>/usr/share/fonts/chinesefonts</dir>          --添加这一行
<dir>/usr/share/X11/fonts/Type1</dir> <dir>/usr/share/X11/fonts/TTF</dir> <dir>/usr/local/share/fonts</dir>
<dir prefix="xdg">fonts</dir>
<!-- the following element will be removed in the future -->
<dir>~/.fonts</dir>

最后重新启动open

/speedec/sh/restart_openoffice.sh

7.登陆系统查看单据是否能够打印

注意如果服务器以前安装的是openoffice 需要注释 vi /speedec/sh/restart_openoffice.sh
#nohup /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &

举报

相关推荐

0 条评论