yugabyteDB centos 安装与集群部署

2022-05-12 00:00:00 集群 专区 订阅 付费 成功

wget https://downloads.yugabyte.com/yugabyte-2.2.2.0-linux.tar.gz

tar xvfz yugabyte-2.2.2.0-linux.tar.gz && cd yugabyte-2.2.2.0/

./bin/post_install.sh

验证:./bin/yugabyted start

./bin/yugabyted status

+--------------------------------------------------------------------------------------------------+ | yugabyted | +--------------------------------------------------------------------------------------------------+ | Status : Running | | Web console : http://127.0.0.1:7000 | | JDBC : jdbc:postgresql://127.0.0.1:5433/yugabyte?user=yugabyte&password=yugabyte | | YSQL : bin/ysqlsh | | YCQL : bin/ycqlsh | | Data Dir : var/data | | Log Dir : var/logs | | Universe UUID : fad6c687-e1dc-4dfd-af4b-380021e19be3 | +--------------------------------------------------------------------------------------------------+

即成功。

yugabyteDB集群手动部署:

先新建文件夹:mkdir /home/centos/disk1&mkdir /home/centos/disk2

要集群的服务器分别执行

./bin/yb-master \

--master_addresses 192.168.6.100:7100,192.168.6.98:7100 \

--rpc_bind_addresses 192.168.6.100:7100 \

--replication_factor=2 \

--fs_data_dirs "/home/centos/disk1,/home/centos/disk2" \

&

./bin/yb-tserver \

--tserver_master_addrs 192.168.6.98:7100,192.168.6.100:7100 \

--rpc_bind_addresses 192.168.6.98:9100 \

--start_pgsql_proxy \

--pgsql_proxy_bind_address 192.168.6.98:5433 \

--cql_proxy_bind_address 192.168.6.98:9042 \

--fs_data_dirs "/home/centos/disk1,/home/centos/disk2" \

&

即可集群成功,locolhost:7000可查看集群是否成功

来自:https://zhuanlan.zhihu.com/p/192490745

相关文章