markdown 如何在单主机(单节点模式)上安装Flynn?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 如何在单主机(单节点模式)上安装Flynn?相关的知识,希望对你有一定的参考价值。

#!/bin/bash

echo "Enter your cluster domain name (example: flynn.your-domain.com):"
read cluster_domain

if [ -z "$cluster_domain" ]; then
  echo "Please try again and supply cluster domain"
  exit 0
fi

# install flynn
curl -fsSL -o /tmp/install-flynn https://dl.flynn.io/install-flynn && sudo bash /tmp/install-flynn --clean --yes

# start flynn daemon & run it when server get rebooted
sudo systemctl start flynn-host && sudo systemctl enable flynn-host

# bootstrap the cluster
sudo CLUSTER_DOMAIN=$cluster_domain flynn-host bootstrap
`$ sudo bash -c "$(curl -s https://gist.githubusercontent.com/zulhfreelancer/0b87a274686cb4d98b8144e116c5117c/raw)"`

以上是关于markdown 如何在单主机(单节点模式)上安装Flynn?的主要内容,如果未能解决你的问题,请参考以下文章