[Shardingsphere]sharding-ui的安装与使用

ShardingSphere提供了界面治理模块——sharding-ui,通过sharding-ui可以快速维护sharding-proxy集群。

一、安装

1.下载

https://shardingsphere.apache.org/document/current/cn/downloads/
在这里插入图片描述

2.安装和配置

(1)解压:

[root@app1 powersql]# tar -xf apache-shardingsphere-incubating-4.0.0-sharding-ui-bin.tar.gz 
[root@app1 powersql]# ll
total 23064
drwxr-xr-x 6 root root      103 Feb 28 15:23 apache-shardingsphere-incubating-4.0.0-sharding-ui-bin
-rw-r--r-- 1 root root 23615313 Feb 28 15:23 apache-shardingsphere-incubating-4.0.0-sharding-ui-bin.tar.gz

(2)进入程序目录并运行

[root@app1 powersql]# cd apache-shardingsphere-incubating-4.0.0-sharding-ui-bin
[root@app1 powersql]# bin/start.sh

sharding-ui是一个标准的springboot程序,可以通过conf/application.properties配置相关信息:

#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

server.port=8088

user.admin.username=admin
user.admin.password=admin

这里是下面要用到的连接配置信息,端口、用户名和密码可在此修改。

二、配置与使用

输入你部署的服务器的ip地址:8088进入管理界面。
例如我的地址是: http://172.18.100.33:8088
在这里插入图片描述
默认用户名和密码是: admin/admin

1.添加注册中心

在这里插入图片描述
这里对应server.yaml中的配置,不多赘述,如图:
在这里插入图片描述
在这里插入图片描述

2.配置管理

在这里插入图片描述
这里可以进行公共信息认证信息分表分库的配置,可实时生效。

3.运行状态

在这里插入图片描述
这里可以看到连接的sharding-proxy节点信息,并且可实时禁用。

从库信息界面主要是读写分离的信息:
在这里插入图片描述

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值