Could not start the office process. An error prevents us to start a process with

编程入门 行业动态 更新时间:2024-10-11 21:23:01

Could not start the <a href=https://www.elefans.com/category/jswz/34/1768652.html style=office process. An error prevents us to start a process with"/>

Could not start the office process. An error prevents us to start a process with

问题重现

Could not start the office process.
org.jodconverter.core.office.OfficeException: An error prevents us to start a process with --accept ‘socket,host=127.0.0.1,port-2002,tcpNoDelay=1;urp;StarOffice.ServiceManager’

最近在使用 kkFileView 在线预览服务时,当部署在 linux(centos7)上面时,启动kkFileView服务失败,报下面的这个错误,显然是这个文档转换服务启动失败。

解决

经过 google 大海捞针之后发现是因为缺少环境导致

实操

1、执行 kkfileview 项目中的自带默认安装服务脚本 install.sh 之后会在 /opt 下面产生一个libreoffice7.3 文件夹。

不同版本 libreoffice 版本号不同

[root@curry opt]# pwd
/opt
[root@curry opt]# ll
总用量 0
drwxr-xr-x. 7 root root 145 10月 30 02:58 libreoffice7.3

2、执行下面这个命令查看缺少的依赖(根据自己安装的版本替换/opt/libreofficeX.X)

[root@curry program]# /opt/libreoffice7.3/program/soffice --headless --accept="socket,host=127.0.0.1,port=2001;urp;" --nofirststartwizard &

3、经观察是由于缺少 libnss3.so 这个依赖导致的

4、安装依赖

[root@curry program]# yum install -y libnss3.so

5、停止kkfileview

[root@curry kkFileview]# sh shutdown.sh
正在停止进程:27197...
进程:27197停止成功!

6、启动kkfileview

[root@curry kkFileview]# sh startup.sh
Starting kkFileView...
Please execute tailf -n 300 log/kkFileview.log to check log for more information

7、成功启动

更多推荐

Could not start the office process. An error prevents us to start a process with

本文发布于:2024-03-06 09:34:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1714989.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:office   start   process   prevents   error

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!