在云平台上安装

在云平台上安装

在Google Cloud Platform、Amazon Web Services和Microsoft Azure等云平台,可以将hummingbot作为长期运行的服务来运行。

在Google Cloud Platform创建一个新的VM实例

image

image

在Amazon Web Services创建一个新的VM实例

image

image

image

image

image

在Microsoft Azure创建一个新的VM实例

image

image

image

image

image

image

image

在Ubuntu上安装Docker(或参考Docker官方说明)

更新apt包索引

sudo apt-get update

安装允许apt通过HTTPS使用存储库的文件

sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common

添加Docker的官方GPG密钥

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo apt-key fingerprint 0EBFCD88 sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable edge test”

进行另一个apt-get更新

sudo apt-get update

安装Docker

sudo apt-get install docker-ce docker-ce-cli containerd.io

更改docker的sudo权限

sudo usermod -a -G docker $USER

使用Docker安装Hummingbot

执行下面的命令

export NAME=myhummingbot export TAG=latest sudo docker run -it \ –name $NAME \ -v “$PWD”/conf/:/conf/ \ -v “$PWD”/logs/:/logs/ \ coinalpha/hummingbot:$TAG

image

image

Table of Contents