我的 openoffice.org 在 RedHad 版本的 linux 上有问题。
OpenOffice 已成功安装,如果我以 root 身份运行以下命令,则可以从命令行获得:
[root@s15548792 ~]# /usr/bin/ooffice "StarOffice.ServiceManager" -headless &
[1] 17321
[root@s15548792 ~]# ps | grep soffice.bin
17331 pts/0 00:00:00 soffice.bin
Run Code Online (Sandbox Code Playgroud)
当我更改用户 apache 时,我得到了这个:
[root@s15548792 ~]# su apache
bash-3.2$ /usr/bin/ooffice "StarOffice.ServiceManager" -headless &
[1] 17341
bash-3.2$ [Java framework] Error in function createSettingsDocument (elements.cxx).
javaldx failed!
[1]+ Done /usr/bin/ooffice "StarOffice.ServiceManager" -headless
bash-3.2$ ps -u `whoami` | grep soffice.bin
bash-3.2$
Run Code Online (Sandbox Code Playgroud)
它显然是一个用户问题,但在我看来,所有的 OpenOffice.org 文件都归 apache 所有。我已经搜索了几天,主要的解决方案似乎是将 ~/.config 的所有者更改为 apache,但我不知道该怎么做。
如果在我使用 php 运行命令时有帮助,我会得到以下输出
[0] => Trying …Run Code Online (Sandbox Code Playgroud)