自学内容网 自学内容网

向量库Milvus异常挂了,重新启动

1. 检查 Milvus 服务状态   docker ps -a | grep milvus

[root@localhost ~]# docker ps -a | grep milvus
3f4be056538e   milvusdb/milvus:v2.4.9                     "/tini -- milvus run…"   2 months ago   Exited (1) 3 hours ago             milvus-standalone
b06e301d446c   minio/minio:RELEASE.2023-03-20T20-16-18Z   "/usr/bin/docker-ent…"   2 months ago   Exited (0) 3 hours ago             milvus-minio
a50e3b1bafdb   quay.io/coreos/etcd:v3.5.5                 "etcd -advertise-cli…"   2 months ago   Exited (0) 3 hours ago             milvus-etcd
[root@localhost ~]#

Milvus 及其相关服务(如 MinIO 和 etcd)的容器都已经退出。具体来说:

  • milvus-standalone 容器退出状态为 1,这通常表示容器在启动过程中遇到了错误。
  • milvus-minio 和 milvus-etcd 容器都已正常退出(状态 0),但这也意味着它们没有运行。

2. 查看端口号  netstat -tuln | grep 19530

(base) [root@localhost ~]# netstat -tuln | grep 19530
(base) [root@localhost ~]# 

没反应,端口(19530)上没有进程在监听

3. 重新启动服务

docker start b06e301d446c  # 启动 MinIO
docker start a50e3b1bafdb  # 启动 etcd

docker start 3f4be056538e  # 重新启动 Milvus

(base) [root@localhost ~]# docker start b06e301d446c
b06e301d446c
(base) [root@localhost ~]# docker start a50e3b1bafdb
a50e3b1bafdb
(base) [root@localhost ~]# docker start 3f4be056538e
3f4be056538e

 

4. 再一次查看端口号: netstat -tuln | grep 19530

(base) [root@localhost ~]# netstat -tuln | grep 19530
tcp        0      0 0.0.0.0:19530           0.0.0.0:*               LISTEN     
tcp6       0      0 :::19530                :::*                    LISTEN

5. 检查 Milvus 服务状态   docker ps -a | grep milvus

(base) [root@localhost ~]# docker ps -a | grep milvus
3f4be056538e   milvusdb/milvus:v2.4.9                     "/tini -- milvus run…"   2 months ago   Up 45 seconds (healthy)       0.0.0.0:9091->9091/tcp, :::9091->9091/tcp, 0.0.0.0:19530->19530/tcp, :::19530->19530/tcp   milvus-standalone
b06e301d446c   minio/minio:RELEASE.2023-03-20T20-16-18Z   "/usr/bin/docker-ent…"   2 months ago   Up About a minute (healthy)   0.0.0.0:9000-9001->9000-9001/tcp, :::9000-9001->9000-9001/tcp                              milvus-minio
a50e3b1bafdb   quay.io/coreos/etcd:v3.5.5                 "etcd -advertise-cli…"   2 months ago   Up About a minute (healthy)   2379-2380/tcp  

启动成功了


原文地址:https://blog.csdn.net/2301_77615930/article/details/143398069

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!