简体   繁体   English

如何在Arangodb Docker容器中停止和启动Arangodb服务器

[英]How to stop and start arangodb server in arangodb docker container

I could not stop the arangodb server in arangodb docker container. 我无法在arangodb docker容器中停止arangodb服务器。

when I execute below one, 当我执行不到一个时,

$/etc/init.d/arangod stop $ / etc / init.d / arangod停止

$service arangodb status $ service arangodb状态

  • arangod is not running arangod没有运行

But I could still connect arangodb server using arangosh. 但是我仍然可以使用arangosh连接arangodb服务器。

I don't know why this is happening , Any help? 我不知道为什么会这样,有帮助吗?

ArangoDB is now available via the Docker library 现在可以通过Docker库获得 ArangoDB

The ArangoDB 2.8.x docker container will only run the ArangoDB service alone. ArangoDB 2.8.x docker容器将仅单独运行ArangoDB服务。

you can use 您可以使用

docker ps -a 

to get the container ID (and its started/stopped state), which you then can use with 获取容器ID(及其开始/停止状态),然后可以将其与

docker start <container ID>

and

docker stop <Container ID>

to start/stop the ArangoDB server. 启动/停止ArangoDB服务器。

docker exec -it <Container ID> bash

can give you a shell inside of that running container, but the user is not privileged to start or stop the service. 可以在正在运行的容器中提供外壳程序,但是用户无权启动或停止该服务。

Using the ArangoDB web interface select the support option from the left. 使用ArangoDB Web界面,从左侧选择支持选项。 Then select the "Rest API" tab and scroll down to the "/_admin/shutdown" option. 然后选择“ Rest API”标签,然后向下滚动到“ / _admin / shutdown”选项。 On the right of this click on the "Initiate shutdown sequence" link. 在此右侧,单击“启动关闭顺序”链接。 This opens an area that has a button labeled "Try it out!". 这将打开一个区域,该区域具有标记为“尝试一下!”的按钮。 Pressing this button will shut down your server. 按下此按钮将关闭服务器。

I am using the V3.2.4 Community Edition. 我正在使用V3.2.4社区版。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM