GithubHelp home page GithubHelp logo

go-aid's Introduction

go-aid

aid server with ourchain

How to use?

please refer to the following file: api.md

How to use docker-compose to deploy?

quick start:

  1. run docker volume create node_data start disk volume
  2. run docker-compose up -d in this project root directory
  3. use docker-compose down in this project root directory to stop container

note:

  • docker volume create node_data 建立 node_data volume 作為節點資料外部儲存區
  • docker volume rm node_data 刪除 node_data volume
  • docker-compose up -d 啟動容器群集
  • docker-compose down 停止容器群集
  • docker-compose pull 更新容器群集
  • docker run -it --rm -v node_data:/node busybox sh 進入節點資料外部儲存區
  • sudo docker exec -it go-aid-chain-1 /bin/bash 進入區塊鏈(可以用 bitcoin-cli generate 1 重置)
  • docker-compose logs -f 查看容器群集日誌
  • docker-compose ps 查看容器群集狀態

How to use nginx to proxy aid services?

  • sudo apt install nginx 安裝 nginx
  • sudo nginx -t 檢查 nginx 設定檔語法
  • sudo systemctl restart nginx 重啟 nginx
  • sudo systemctl status nginx 查看 nginx 狀態
  • sudo systemctl stop nginx 停止 nginx
  • sudo systemctl start nginx 啟動 nginx
  • sudo systemctl enable nginx 設定 nginx 開機自動啟動
  • sudo vim /etc/nginx/nginx.conf 編輯 nginx 設定檔

go-aid's People

Contributors

leon123858 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.