mysql-使用openclaw自动化安装xenon集群

张开发
2026/4/17 22:55:29 15 分钟阅读

分享文章

mysql-使用openclaw自动化安装xenon集群
目录1.环境准备1.1虚机信息1.2配置免密登录2.使用openclaw自动化安装2.1查找网络上关于xenon部署相关文档2.2编辑提示词2.3聊天窗口执行3.手动验证集群3.1查看集群状态3.2查看Raft状态4.经验总结1.环境准备1.1虚机信息IP地址应用操作系统版本备注10.9.254.72openclawUbuntu24已部署openclaw2026.4.1110.9.254.51mysql01Rockylinux8.7已配置互联网软件源10.9.254.52mysql02Rockylinux8.7已配置互联网软件源10.9.254.53mysql03Rockylinux8.7已配置互联网软件源1.2配置免密登录配置openclaw到其它节点的免密登录在openclaw服务器上操作以10.9.254.51为例其它节点相同。rootopenclaw:~# apt install openssh-client -yReading package lists... DoneBuilding dependency tree... DoneReading state information... Doneopenssh-client is already the newest version (1:9.6p1-3ubuntu13.15).openssh-client set to manually installed.0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.rootopenclaw:~# ssh-keygen -t ed25519 -C openclaw-ai-maintenanceGenerating public/private ed25519 key pair.Enter file in which to save the key (/root/.ssh/id_ed25519): #直接回车使用默认路径 ~/.ssh/id_ed25519Enter passphrase (empty for no passphrase): #直接回车留空实现完全免密适合自动化运维Enter same passphrase again: #直接回车留空实现完全免密适合自动化运维Your identification has been saved in /root/.ssh/id_ed25519Your public key has been saved in /root/.ssh/id_ed25519.pubThe key fingerprint is:SHA256:7v8i59WDyoV2ALG9O8/WFngcAeurLQD3vstTKz12IMo openclaw-ai-maintenanceThe keys randomart image is:--[ED25519 256]--| . .. || .. || o . . . || . .. o . || oS.o .o . || .. o || ..*o. || .EB* . || .X |----[SHA256]-----rootopenclaw:~# ssh-copy-id root10.9.254.51/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: /root/.ssh/id_ed25519.pub/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keysroot10.9.254.51s password: #首次需输入对方root用户密码Number of key(s) added: 1Now try logging into the machine, with: ssh root10.9.254.51and check to make sure that only the key(s) you wanted were added.rootopenclaw:~# ssh root10.9.254.51Last login: Fri Apr 17 10:11:47 2026 from 10.9.254.72[rootpoc ~]#2.使用openclaw自动化安装确保openclaw能够访问互联网2.1查找网络上关于xenon部署相关文档本实验已我个人博客为例https://blog.csdn.net/bingyan0371/article/details/159086908?spm1001.2014.3001.55012.2编辑提示词https://blog.csdn.net/bingyan0371/article/details/159086908?spm1001.2014.3001.5501把这篇文章精读一下然后深入理解核心内容总结一下目前你自己的能力是否能登录到局域网10.9.254.51、10.9.254.52、10.9.254.53三个主机已配置免密登录。先回答我是否能进行安装部署再让我决定要不要进行安装部署。2.3聊天窗口执行帮忙配置下三个节点ssh免密互访如果满足mysql集群安装部署条件进行安装部署。部署完成后给我信息。使用方案A允许在本机编译后上传并验证xenon高可用效果最终给我反馈结果。帮忙调试下Raft配置使集群处于完全健康状态并最终反馈结果。3.手动验证集群3.1查看集群状态[rootpoc ~]# echo /etc/xenon.json /usr/local/bin/config.path[rootpoc ~]# /usr/local/bin/xenoncli cluster status3.2查看Raft状态[rootpoc ~]# /usr/local/bin/xenoncli raft status{state:FOLLOWER,leader:,nodes:[10.9.254.51:8801,10.9.254.52:8801,10.9.254.53:8801]}4.经验总结本次安装全部由openclaw自主安装中途确认建议3次。共用时1小时。大部分时间浪费在了网络无法下载软件包上。如果提前将使用软件包上传到openclaw上安装用时应该可以控制到20分钟内。提示词尽量详细比如说主机名修改成什么使用哪个密码这样的话会更方便管理。

更多文章