怎样解决LibreOffice在Web服务器上不能运行的问题

By admin, 9 十一月, 2015
  1. 确认libreoffice已经安装。当我们部署web程序的时候可能忘记了这一点
  2. 确认相关参数在命令行下可以运行,相关目录可写
  3. 查出web服务器的用户,比如www-data
  4. 在/etc/passwd下查看该web用户的目录,比如/home/www-data或/var/www
  5. 把该用户目录改成可写,libreoffice需要在用户目录里创建一个目录
  6. 如果还是不行,把命令的输出重定向到/tmp/libreoffce.log。重定向的符号有时是2>有时是&>,搞不懂……

标签

评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"