文件打开错误 - 不允许操作,尝试 运行 应用程序服务器时在 macOS 上出现此错误

File open error - operation not permitted , getting this error on macos when trying to run an application server

我已经创建了一个 marklogic 应用程序服务器,它托管了一个配置在端口 8040 上的热门歌曲应用程序,根目录是应用程序文件夹的路径。

我已尝试授予对每个文件夹和文件的读写权限,但未能解决问题。

当我尝试使用 xquery/javascript 通过查询控制台插入文档时发生了类似的错误。权限被拒绝。

500 Internal Server Error SVC-FILOPN: File open error: open '/Users/rishabh/Downloads/mls-semantics/projects/top-songs/index.xqy': Operation not permitted in / [1.0-ml]

验证文件的权限和所有权。另外,下载目录。

MarkLogic 进程需要能够看到 read/write。也许在下载目录之外尝试 运行 并放入特定目录。

您也可以考虑使用模块数据库而不是文件系统。