22
loading...
This website collects cookies to deliver better user experience
ssh -i ~/.ssh/id_rsa [email protected]
ver=$(curl -s https://docs.yugabyte.com/latest/releases/whats-new/latest-release/ | awk -F"-" '/https:[/][/]downloads.yugabyte.com[/]yugabyte-.*linux.tar.gz/{sub(/-linux.tar.gz.*/,"");print $NF;exit}' | tee /dev/stderr )
curl https://downloads.yugabyte.com/yugabyte-${ver}-linux.tar.gz | tar zxf -
cd yugabyte-$ver
bin/post_install.sh
sudo echo '* - nofile 1048576' | sudo tee /etc/security/limits.d/99-yugabyte.conf
sudo firewall-cmd --zone=public --permanent --add-port=5433/tcp
sudo firewall-cmd --zone=public --permanent --add-port=7000/tcp
sudo firewall-cmd --zone=public --permanent --add-port=9000/tcp
sudo firewall-cmd --zone=public --permanent --add-port=13000/tcp
sudo firewall-cmd --reload
bin/yugabyted start --listen 0.0.0.0
bin/yugabyted connect ysql <<< "alter role yugabyte with password 'yb-oci-franck'; create user franck with password 'YugabyteDB';"
bin/yugabyted demo connect <<< "grant all privileges on all tables in schema public to franck;"
bin/yugabyted stop
bin/yugabyted start --tserver_flags="ysql_enable_auth=true"
echo "psql postgres://franck:YugabyteDB@$(curl -s ifconfig.me):5433/yb_demo_northwind"
22