如何在我的 CentOS 服务器上以无头模式下载和安装 OpenOffice 3.1...我正在使用一个 Java 应用程序,它需要 OpenOffice 作为表单生成服务....我遇到了困难...任何关于采取什么步骤的建议都会很棒...
答案1
yum install openoffice.org-<package>
例子:
yum install openoffice.org-base
yum install openoffice.org-calc
yum install openoffice.org-writer
答案2
yum install openoffice.org-base
yum install openoffice.org-calc
yum install openoffice.org-writer
yum install openoffice.org-headless
您还需要最后一个命令才能在无头模式下运行。否则您将得到:
/usr/lib64/openoffice.org3/program/soffice.bin X11 error: Can't open display:
Set DISPLAY environment variable, use -display option
or check permissions of your X-Server
(See "man X" resp. "man xhost" for details)
答案3
yum install openoffice.org-headless