在MarkLogic中忘记了我的管理员用户名和密码 [英] Forgot my admin username and password in MarkLogic
问题描述
我在MarkLogic 5中忘记了管理员的用户名和密码.我试图卸载MarkLogic 5软件并重新安装.但是每次启动服务器后登录端口8001时,每次要求输入用户名和密码.
I have forgotten my username and password of admin in MarkLogic 5. I tried to uninstall the software MarkLogic 5 and install that again. But every time it is asking for username and password when logging into the port 8001 after starting the server.
您能帮我得到那个吗?
推荐答案
当然,要克服管理员密码是很难的(或不可能的).您提到了卸载MarkLogic.如果您不担心保存数据,可以卸载MarkLogic 并删除数据目录(在Linux上为/var/opt/MarkLogic),然后在重新安装时将提示您输入新的管理员密码.
Getting past the admin password is supposed to be hard (or impossible), of course. You mentioned uninstalling MarkLogic; if you aren't worried about preserving data, you can uninstall MarkLogic and remove the data directory (/var/opt/MarkLogic on Linux), then when you reinstall you'll be prompted to enter a new admin password.
从Jordan Stewart的评论中添加代码以提供更好的格式:
edit: adding code from Jordan Stewart's comment to provide better formatting:
# stop Marklogic using a service
sudo service MarkLogic stop
# change directories to MarkLogic data dir
cd var/opt/MarkLogic/
# remove everything including folder, this is dangerous
sudo rm -rf *
# start MarkLogic
sudo service MarkLogic start
这篇关于在MarkLogic中忘记了我的管理员用户名和密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!