ITPub博客

首页 > 数据库 > > M3DB单机版体验

M3DB单机版体验

作者:飘絮絮絮丶 时间:2022-03-14 14:41:54 0 删除 编辑

简介
安装步骤(centOS7为例)
环境准备:
操作系统:CentOS7
必要组件:wget
创建文件目录
mkdir -p /home/m3db
3.下载, 解压, 运行
wget https://s3-gz01.didistatic.com/n9e-pub/tarball/m3dbnode-single-v0.0.1.tar.gz
tar zxvf m3dbnode-single-v0.0.1.tar.gz
cd m3dbnode-single
./scripts/install.sh #install.sh为自行编写的脚本,建议自己查看一下步骤
systemctl enable m3dbnode
1
2
3
4
5
4.初始化

curl -X POST http://localhost:7201/api/v1/database/create -d '{
"type": "local",
"namespaceName": "default",
"retentionTime": "48h"
}'
1
2
3
4
5
5.查看状态
systemctl status m3dbnode

6.查看进程
[root@CentOS7n9ev4 n9e]# ss -tlnp|grep m3dbnode
LISTEN 0 128 [::]:7201 [::]😗 users:((“m3dbnode”,pid=1025,fd=7))
LISTEN 0 128 [::]:7203 [::]😗 users:((“m3dbnode”,pid=1025,fd=12))
LISTEN 0 128 [::]:9000 [::]😗 users:((“m3dbnode”,pid=1025,fd=19))
LISTEN 0 128 [::]:9001 [::]😗 users:((“m3dbnode”,pid=1025,fd=16))
LISTEN 0 128 [::]:9002 [::]😗 users:((“m3dbnode”,pid=1025,fd=20))
LISTEN 0 128 [::]:9003 [::]😗 users:((“m3dbnode”,pid=1025,fd=21))
LISTEN 0 128 [::]:2379 [::]😗 users:((“m3dbnode”,pid=1025,fd=10))
LISTEN 0 128 [::]:9004 [::]😗 users:((“m3dbnode”,pid=1025,fd=22))
LISTEN 0 128 [::]:2380 [::]😗 users:((“m3dbnode”,pid=1025,fd=9))
————————————————
版权声明:本文为CSDN博主「Mu_Chengg」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/alien__pass/article/details/116596961

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69946831/viewspace-3144791/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-09-09

  • 博文量
    2646
  • 访问量
    42218