Linux command
yugabyted 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Start local cluster
yugabyted start
Start with specific data directory
yugabyted start --base_dir=[/data/yb]
Check cluster status
yugabyted status
Stop the cluster
yugabyted stop
Connect with PostgreSQL client
ysqlsh
Connect with Cassandra client
ycqlsh
Add a node to cluster
yugabyted start --join=[existing-node]
Destroy cluster data
yugabyted destroy
说明
yugabyted manages YugabyteDB clusters, a distributed SQL database compatible with PostgreSQL. It simplifies single-node and multi-node deployments. YugabyteDB offers two APIs: YSQL (PostgreSQL-compatible) and YCQL (Cassandra-compatible). Use ysqlsh for SQL workloads and ycqlsh for wide-column workloads. yugabyted start runs YB-Master and YB-TServer processes. The admin UI (default port 15433) shows cluster health, tables, and metrics. Connect YSQL on port 5433. For multi-node clusters, start the first node normally, then use --join on additional nodes. --fault_tolerance configures replication for zone or region failure survival. YSQL supports most PostgreSQL features including extensions, stored procedures, and common ORMs. Connection strings follow PostgreSQL format.
FAQ
What is the yugabyted command used for?
yugabyted manages YugabyteDB clusters, a distributed SQL database compatible with PostgreSQL. It simplifies single-node and multi-node deployments. YugabyteDB offers two APIs: YSQL (PostgreSQL-compatible) and YCQL (Cassandra-compatible). Use ysqlsh for SQL workloads and ycqlsh for wide-column workloads. yugabyted start runs YB-Master and YB-TServer processes. The admin UI (default port 15433) shows cluster health, tables, and metrics. Connect YSQL on port 5433. For multi-node clusters, start the first node normally, then use --join on additional nodes. --fault_tolerance configures replication for zone or region failure survival. YSQL supports most PostgreSQL features including extensions, stored procedures, and common ORMs. Connection strings follow PostgreSQL format.
How do I run a basic yugabyted example?
Run `yugabyted start` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more yugabyted examples?
This page includes 8 examples for yugabyted, plus related commands for nearby Linux tasks.