【发布时间】:2019-11-04 09:21:24
【问题描述】:
我已经在 CentOS 上安装了 MarkLogic 服务器 10.0-2.1x86_64,并按照documentation 安装了相应的转换器。这是全新安装,我唯一的目标是继续配置服务器。 MarkLogic 服务器以OK 状态运行,ErrorLog.txt 中没有错误。此外,端口 8000、8001、8002、7999、7998 和 7997 是开放的,并且没有其他任何东西在上面运行
但是,当我访问 localhost:8001 时,响应是 HTTP 代码 302。
这是我的 8001_AccessLog.txt 中的内容
::1 - - [04/Nov/2019:13:11:12 +0530] "GET / HTTP/1.1" 302 0 - "curl/7.29.0"
我提出的要求是:
[root@root Logs]# curl -v http://localhost:8001
* About to connect() to localhost port 8001 (#0)
* Trying ::1...
* Connected to localhost (::1) port 8001 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:8001
> Accept: */*
>
< HTTP/1.1 302 Found
< X-Frame-Options: DENY
< Content-Security-Policy: default-src 'self'; media-src 'self'; img-src 'self' data:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';
< X-Content-Security-Policy: default-src 'self'; media-src 'self'; img-src 'self' data:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';
< Location: initialize-admin.xqy
< Server: MarkLogic
< Content-Length: 0
< Connection: Keep-Alive
< Keep-Alive: timeout=5
对 http://localhost:8002 和 http://localhost:8000 的请求会出现 403 错误。是否有一些用户/访问控制列表需要配置?我也对 MarkLogic 9 进行了同样的尝试,但我遇到了同样的问题。我已将 MarkLogic 安装为 root 用户,/etc/sysconfig/marklogic 中的 MARKLOGIC_USER 也设置为 root。
【问题讨论】: