Code Monkey home page Code Monkey logo

ipfs's Introduction

ipfs setup

1. Install an nginx reverse proxy + cache for an ipfs-cluster peer gateway on Linux.

$ wget https://raw.githubusercontent.com/hautph/ipfs/master/ipfs-cluster-nginx.sh

$ sh ipfs-cluster-nginx.sh

$ sudo systemctl status nginx

$ sudo tail -f /var/log/nginx/access.log

2. Install an ipfs-cluster peer on Linux.

First node (node_0) setup

$ export CLUSTER_SECRET=$(od -vN 32 -An -tx1 /dev/urandom | tr -d ' \n')

$ echo $CLUSTER_SECRET

<-- other nodes must also use this secret

Jump down to Run the installer.

Other nodes (node_n>0) setup

On node_0 after running the installer,

$ journalctl -u ipfs-cluster -n10

In the above log output, look under the line INFO cluster: IPFS Cluster v0.3.0 listening on: cluster.go:91 and make a note of the full non-loopback ip4 cluster multiaddress (cluster.listen_multiaddress). This will reference your instance's private IP address and will be used to bootstrap other nodes.

Back to other nodes (node_n>0),

$ export CLUSTER_SECRET=<node_0 secret>

$ export CLUSTER_BOOTSTRAP=<node_0 cluster.listen_multiaddress w/ instance private IP>

Run the installer

$ wget https://raw.githubusercontent.com/hautph/ipfs/master/ipfs-cluster-linux.sh

$ sh ipfs-cluster-linux.sh

$ sudo systemctl status ipfs

$ sudo systemctl status ipfs-cluster

$ journalctl -u ipfs-cluster --follow

3. Install ipfs on Linux.

$ wget https://raw.githubusercontent.com/hautph/ipfs/master/ipfs.sh

$ sh ipfs.sh

$ sudo systemctl status ipfs

$ journalctl -u ipfs --follow

ipfs's People

Contributors

hautph avatar

Watchers

 avatar

Forkers

bitwares

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.