marklogic用户应用服务器 [英] marklogic user app server

查看:94
本文介绍了marklogic用户应用服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我执行默认安装,MarkLogic将在哪个用户身份下运行?

Which user the MarkLogic runs under if I do a default install?

我正在使用Linux Mint ML版本6,并且正在做实验室单元5 创建8030世界领先者应用程序

I am on linux mint ML version 6 and I am doing the labs unit 5 creating the 8030-world-leaders app

在setupdb.txt中,我已更改为脚本以使用家中的目录 像:

In the setupdb.txt I have changed to script to use a directory in my home like:

(: application server :)
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy";
let $config := admin:get-configuration()
let $groupid := admin:group-get-id($config, "Default")
let $server := admin:http-server-create(
  $config, 
  $groupid,
  "8030-world-leaders", 
  "/home/hugo/mls-projects/world-leaders",
  8030,
  0,
  admin:database-get-id($config, "world-leaders"))
return admin:save-configuration($server);

但是现在我收到500错误,例如: 500内部服务器错误

but now i get a 500 error like: 500 Internal Server Error

SVC-FILSTAT:文件状态错误:stat64'/home/hugo/mls-projects/world-leaders/':权限被拒绝 [1.0毫升]

SVC-FILSTAT: File status error: stat64 '/home/hugo/mls-projects/world-leaders/': Permission denied [1.0-ml]

我已将此目录chmod设置为具有+ rw,但此权限仍然被拒绝错误.

I have chmod this dir to have a+rw but still this permission denied error.

推荐答案

默认情况下,服务器以daemon的身份运行.

By default the server runs as daemon.

要列出目录,目录也必须是可执行的.试试:

To be listable, directories must also be executable. Try:

chmod -R a+r /home/hugo/mls-projects/world-leaders
find /home/hugo/mls-projects/world-leaders -type d -print0 | xargs -0 chmod a+rx

您可能还需要检查父/home/hugo/mls-projects和祖父母/home/hugo目录.如有必要,请确保它们也是a+rx.

You may also need to check the parent /home/hugo/mls-projects and grandparent /home/hugo directories. If necessary, make sure they are also a+rx.

另请参见 chmod:无法读取目录.":权限被拒绝

这篇关于marklogic用户应用服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆