1. Download the YugabyteDB package using the following wget command.
[root@yugabyte-teguhth data]# wget https://downloads.yugabyte.com/releases/2.11.2.0/yugabyte-2.11.2.0-b89-linux-x86_64.tar.gz
2. Extract the package and then change directories to the YugabyteDB home.
[root@yugabyte-teguhth data]# tar xvfz yugabyte-2.11.2.0-b89-linux-x86_64.tar.gz && cd yugabyte-2.11.2.0/
[root@yugabyte-teguhth yugabyte-2.11.2.0]# ls
bin lib linuxbrew postgres pylib share tools version_metadata.json www
[root@yugabyte-teguhth yugabyte-2.11.2.0]# ./bin/post_install.sh
3. Configure YugabyteDB
[root@yugabyte-teguhth yugabyte-2.11.2.0]# ./bin/yugabyted start
Starting yugabyted...
WARNING: Failed to meet recommended settings. Ulimits too low - open_files.
Note yugabyted will still run, although it may fail for larger workloads. For more info, see https://docs.yugabyte.com/latest/deploy/manual-deployment/system-config
? System checks
+--------------------------------------------------------------------------------------------------+
| yugabyted |
+--------------------------------------------------------------------------------------------------+
| Status : Running. Leader Master is present |
| Web console : http://127.0.0.1:7000 |
| JDBC : jdbc:postgresql://127.0.0.1:5433/yugabyte?user=yugabyte&password=yugabyte |
| YSQL : bin/ysqlsh -U yugabyte -d yugabyte |
| YCQL : bin/ycqlsh -u cassandra |
| Data Dir : /root/var/data |
| Log Dir : /root/var/logs |
| Universe UUID : 71cf42c2-d727-4270-8891-d0157eb7bbad |
+--------------------------------------------------------------------------------------------------+
? yugabyted started successfully! To load a sample dataset, try 'yugabyted demo'.
? Join us on Slack at https://www.yugabyte.com/slack
? Claim your free t-shirt at https://www.yugabyte.com/community-rewards/
[root@yugabyte-teguhth yugabyte-2.11.2.0]# bin/ysqlsh -U yugabyte -d yugabyte
ysqlsh (11.2-YB-2.11.2.0-b0)
Type "help" for help.
yugabyte=#
[root@yugabyte-teguhth yugabyte-2.11.2.0]# bin/ysqlsh -U yugabyte -d yugabyte
ysqlsh (11.2-YB-2.11.2.0-b0)
Type "help" for help.
yugabyte=# select datname from pg_database;
datname
-----------------
template1
template0
postgres
yugabyte
system_platform
(5 rows)
yugabyte=#
4. Create sample database and other base on PostgreSQL
https://teguhth.blogspot.com/2019/09/study-kasus-praktis-belajar-query.html
No comments:
Post a Comment