SocketException:在 ubuntu 服务器中连接到 /opt/bitnami/mongodb/tmp/mo



我正在使用 Amazon AWS Lightsail。我有一个 MEAN 堆栈应用程序。自过去几个月以来,它运行顺利。

突然我得到这个错误:

Error connecting to /opt/bitnami/mongodb/tmp/mongodb-27017.sock

如何重新启动 mongodb?

我尝试了以下命令:

sudo service mongodb status

我得到了以下回复:

mongodb.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)

可能是什么原因?我的数据库是否崩溃了,如果是,我该如何修复或重置它?

Bitnami 工程师在这里。您可以通过运行此命令轻松重新启动所有Bitnami服务

sudo /opt/bitnami/ctlscript.sh restart

如果只想重新启动MongoDB服务,请将mongodb附加到命令中。

https://docs.bitnami.com/aws/infrastructure/mean/administration/control-services/

关于MongoDB错误,你可以从它的日志文件(/opt/bitnami/mongodb/log/mongodb.log(中获取更多信息。

https://docs.bitnami.com/aws/infrastructure/mean/get-started/understand-default-config/

相关内容

最新更新