ipfs 사용법

시스템 2021. 12. 6. 15:47

출처 : https://miiingo.tistory.com/204

https://zooyeonii.tistory.com/7

https://bl.ocks.org/kevin-smets/75f717f22a55ac628744c830c9d6b491

https://simpleaswater.com/ipfs-going-online/

 

#ipfs config show 

{
  "API": {
    "HTTPHeaders": {
      "Server": [
        "go-ipfs/0.4.17"
      ]
    }
  },
  "Addresses": {
    "API": "/ip4/127.0.0.1/tcp/5001",
    "Announce": [],
    "Gateway": "/ip4/127.0.0.1/tcp/8080",
    "NoAnnounce": [],
    "Swarm": [
      "/ip4/0.0.0.0/tcp/4001",
      "/ip6/::/tcp/4001"
    ]
  },

 

외부 접근 가능  

#ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
#ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080


#export LIBP2P_FORCE_PNET=1
ipfs daemon 실행 중인 것을 중지하고 다시 시작한다. 


#ipfs shutdown
#ipfs daemon > ipfs.log &

root@server:~# 06:51:37.225 ERROR p2p-config: tried to create a libp2p node with no Private Network Protector but usage of Private Networks is forced by the enviroment config.go:66
06:51:37.226 ERROR   cmd/ipfs: error from node construction: privnet: private network was not configured but is enforced by the environment daemon.go:332
Error: privnet: private network was not configured but is enforced by the environment

[1]+  Exit 1                  ipfs daemon > ipfs.log
root@server:~#

 

'시스템' 카테고리의 다른 글

Gitlab CI react app 배포  (0) 2021.12.31
AWS Amplify 설치  (0) 2021.12.28
gitlab ci Docker 연동(React)  (0) 2021.11.24
gitlab CI_SERVER_TLS_CA_FILE: Permission denied  (0) 2021.08.30
gitlab ci Docker 연동(nodejs)  (2) 2021.08.23
블로그 이미지

iesay

,