暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

openLooKeng之安装 升级 发布 卸载

原创 飞鸟-柯 2022-12-08
565

将openLooKeng在线部署到集群

执行以下命令,按照提示分別输入coordinator、worker节点ip,安装openLooKeng多节点集群:

bash <(wget -qO- https://download.openlookeng.io/install.sh) -m

或:

bash <(wget -qO- https://download.openlookeng.io/install.sh) --multi-node


openLooKeng服务升级

执行以下命令升级openLooKeng服务:

bash <(wget -qO- https://download.openlookeng.io/install.sh) -u <version>

此命令会将当前openLooKeng服务升级到目标版本,并保留当前集群上的所有现有配置。执行以下命令可以列出所有可用的版本:

bash <(wget -qO- https://download.openlookeng.io/install.sh) -l

或:

bash <(wget -qO- https://download.openlookeng.io/install.sh) --list


将配置部署到openLooKeng集群

修改配置文件(/home/openlkadmin/.openlkadmin/cluster_config_info),然后执行以下命令将配置部署到openLooKeng集群:

bash /opt/openlookeng/bin/configuration_deploy.sh

注意,如果想添加更多配置或自定义配置,可以将属性添加到模板存入到位于/home/openlkadmin/.openlkadmin/.etc_template/coordinator/home/openlkadmin/.openlkadmin/.etc_template/worker的文件中。

属性的格式必须是key=<value>,其中value用“<”和“>”括起,意味着它是一个动态值。例如:

http-server.http.port=<http-server.http.port>
exchange.client-threads=<exchange.client-threads>

接下来,需要将实际值添加到配置文件/home/openlkadmin/.openlkadmin/cluster_config_info中。例如:

http-server.http.port=8090
exchange.client-threads=8

卸载openLooKeng服务

卸载openLooKeng Service非常简单直接,只需运行以下命令:

bash /opt/openlookeng/bin/uninstall.sh

这将通过移除删除目录/opt/openlookeng和其中所有文件来卸载openLooKeng服务。但不会删除openlkadmin用户及/home/openlkadmin/下的所有配置文件。如果要删除用户和配置文件,使用以下命令:

bash /opt/openlookeng/bin/uninstall.sh --all








「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论