Skip to content

Instantly share code, notes, and snippets.

[4921] 2021/10/21 16:59:00.201527 [INF] Starting nats-server
[4921] 2021/10/21 16:59:00.245599 [INF] Version: 2.6.2
[4921] 2021/10/21 16:59:00.245620 [INF] Git: [f7c3ac5]
[4921] 2021/10/21 16:59:00.245627 [DBG] Go build: go1.16.9
[4921] 2021/10/21 16:59:00.245633 [INF] Name: nats-cluster-2
[4921] 2021/10/21 16:59:00.245647 [INF] Node: VpUo9efM
[4921] 2021/10/21 16:59:00.245658 [INF] ID: NC5BJX54OY2DLE5M2PW6NYAVGLZN34YUICMW3JNG5RZB74NNZU66L33J
[4921] 2021/10/21 16:59:00.245707 [INF] Using configuration file: nats2.conf
[4921] 2021/10/21 16:59:00.245767 [DBG] Created system account: "$SYS"
[4921] 2021/10/21 16:59:00.247275 [INF] Starting JetStream
#!/usr/bin/env bash
set -exuo pipefail
# Create a private key for a CA.
# genrsa :: create an RSA private key
# -out :: the output filename
# 4096 :: size of the private key
#!/usr/bin/env bash
set -euo pipefail
version=${1:-}
if [[ -z "$version" ]]; then
echo "missing version"
echo "usage: install-node.sh <version>"
exit 1
fi
#!/usr/bin/env bash
set -euo pipefail
create_ca() {
domain="myca.private"
cakey="${domain}-ca-key.pem"
cacrt="${domain}-ca-cert.pem"
echo "Creating CA for domain: ${domain}"
@variadico
variadico / install-go.sh
Last active April 4, 2021 02:24
Install Go
#!/usr/bin/env bash
set -euo pipefail
version=${1:-}
if [[ -z "$version" ]]; then
echo "missing version"
echo "usage: install-go.sh <version>"
exit 1
fi