GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — bob/cluster-on-node-install.sh at main · calint/bob Expand file tree/ Copy pathcluster-on-node-install.shMore file actions executable file ·48 lines (38 loc) · 1.2 KB / Copy pathcluster-on-node-install.shFile metadata and controlsexecutable file ·48 lines (38 loc) · 1.2 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 #!/bin/sh # run on the node by cluster-install-nodes.sh # distribution: Canonical, Ubuntu, 22.04 LTS set -e # timeout does not currently work #apt -o DPkg::Lock::Timeout=-1 update while ! apt update; do sleep 1; done apt install unattended-upgrades apt -y install default-jdk git default-mysql-server cd / git clone https://github.com/calint/bob cd /bob sh build.sh cat > /etc/systemd/system/bob.service << EOF [Unit] Description=bob After=mysql.service [Service] WorkingDirectory=/bob/ ExecStart=/bob/run.sh [Install] WantedBy=multi-user.target EOF systemctl enable bob # # edit the firewall in your installation to allow access to the mysql port # from your servers and your ip # # mysql allow connection from any host cp -a /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/mysql.conf.d/mysqld.cnf.bak cat /etc/mysql/mysql.conf.d/mysqld.cnf.bak | sed "s/\s*bind-address.*/bind-address=*/g" > /etc/mysql/mysql.conf.d/mysqld.cnf # mysql create database, user and grant access echo "create database testdb; create user 'c'@'%' identified by 'password'; grant all on testdb.* to 'c'@'%';" | mysql # # add droplet to mysql cluster trusted sources # # reboot (logs from the services won't be available otherwise) reboot |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |