YugabyteDB 单节点安装
# cat /etc/issue
Ubuntu 18.04.5 LTS \n \l
# python --version
Python 3.9.17
apt install -y wget curl
# ulimit -n
1048576
wget https://downloads.yugabyte.com/releases/2.19.0.0/yugabyte-2.19.0.0-b190-linux-x86_64.tar.gz
tar xvfz yugabyte-2.19.0.0-b190-linux-x86_64.tar.gz
cd yugabyte-2.19.0.0/
配置 YugabyteDB
./bin/post_install.sh
创建本地集群
复制因子 (RF) 为 1 的单节点本地集群
# ./bin/yugabyted start
Starting yugabyted...
\ Starting the YugabyteDB Processes...Failed to bind to address: 127.0.1.1:9100:
For more information, check the logs in /root/var/logs
./bin/yugabyted start
# ./bin/yugabyted start
Starting yugabyted...
Found files ['yb-data', 'master-info'] in data dir /root/var/data from possibly failed initialization. Removing...
✅ YugabyteDB Started
✅ UI ready
✅ Data placement constraint successfully verified
⚠ WARNINGS:
- ntp/chrony package is missing for clock synchronization. For centos 7, we recommend installing either ntp or chrony package and for centos 8, we recommend installing chrony package.
- Transparent hugepages disabled. Please enable transparent_hugepages.
- Cluster started in an insecure mode without authentication and encryption enabled. For non-production use only, not to be used without firewalls blocking the internet traffic.
Please review the 'Quick start for Linux' docs and rerun the start command: https://docs.yugabyte.com/preview/quick-start/linux/
+----------------------------------------------------------------------------------------------------------+
| yugabyted |
+----------------------------------------------------------------------------------------------------------+
| Status : Running. |
| Replication Factor : 1 |
| YugabyteDB UI : http://127.0.1.1:15433 |
检查集群状态
./bin/yugabyted status