单节点环境
启动
adb_ctl start [-D DATADIR] [-l FILENAME] [-W] [-t SECS] [-s]
例:adb_ctl start -D /home/antdb/datapath
停止
adb_ctl stop [-D DATADIR] [-m SHUTDOWN-MODE] [-W] [-t SECS] [-s]
Shutdown modes are:
smart quit after all clients have disconnected
fast quit directly, with proper shutdown (default)
immediate quit without complete shutdown; will lead to recovery on restart
例:adb_ctl stop -D /home/antdb/datapath -m f
集中式高可用集群环境
adbdcs 集群的启停
启动 adbdcs 集群
分别以 AntDB 用户,例如 adb01 登录三台机器(一主二备)。
使用以下命令分别启动 adbdcs。
sudo systemctl start adbdcs
停止 adbdcs 集群
分别以 AntDB 用户,例如 adb01 登录三台机器(一主二备)。
使用以下命令分别停止 adbdcs。
sudo systemctl stop adbdcs
查看 adbdcs 节点启停状态
分别以 AntDB 用户,例如 adb01 登录三台机器(一主二备)。
使用以下命令分别停止 adbdcs。
sudo systemctl status adbdcs
错误排查
如果启动 adbdcs 或者停止 adbdcs 服务失败,请根据日志文件中的日志信息排查错误。
# adbdcs的日志在系统日志中,如果有问题,可以通过日志报错去调查
tail -f /var/log/messages
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




