Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- javascript 초급
- DataStructure
- Nodejs 프로젝트
- algorithum
- javascript 게임
- 파이썬 알고리즘
- SQL
- mysql
- 생활코딩
- hyperledger
- vs code
- 제로초
- 블록체인개론
- 블록몽키
- 컴퓨터사이언스
- 생활코딩 nodejs
- 자바스크립트
- 관계형데이터베이스
- hyperledger fabric
- Blockmonkey
- 하이퍼레저
- 블록체인
- 프로그래밍
- js
- nodejs
- Javascript
- 컴퓨터공학개론
- 깃
- javascirpt
- al
Archives
- Today
- Total
Blockmonkey
Install IPFS IN Ubuntu 본문
WEB3 객체저장소 IPFS 설치방법 요약
1. Ubuntu Setup
sudo apt-get update
sudo apt-get -y upgrade
2. Golang 설치 (Dependency) [경로작업은 불필요하다]
sudo apt install golang-go -y
3. IPFS 설치
wget https://dist.ipfs.io/go-ipfs/v0.5.0/go-ipfs_v0.5.0_linux-amd64.tar.gz
tar zxvf go-ipfs_v0.5.0_linux-amd64.tar.gz
cd go-ipfs
sudo ./install.sh
4. IPFS 실행
ipfs init //Initialization (PEER ID 확인)
ipfs daemon (IPFS 실행)
// ID 확인 방법
ipfs id

** IPFS nginx Config
/ipfs를 통해 조회할 수 있으며, /upload/ipfs로 저장할 수 있게 proxy pass 설정 과정이다.
server {
location /ipfs {
proxy_pass http://127.0.0.1:8080/ipfs;
}
location /upload/ipfs {
proxy_pass http://127.0.0.1:5001;
}
}
**PM2 & IPFS
무중단 서비스를 위한 IPFS 를 pm2와 사용하는 방법이며, pm2 사용법 및 설치법은 생략한다.
pm2 start "ipfs daemon --enable-gc" //ipfs를 pm2로 실행한다.
pm2 start "ipfs daemon --enable-gc" --max-memory-restart 3G //뒤 옵션을 통해 3GB의 메모리 제한을 두고 실행한다.
'BlockChain' 카테고리의 다른 글
| Hardhat - Upgradable Contract & Verify Contract (0) | 2022.04.21 |
|---|---|
| Blockchain Dev Initial Setting (0) | 2022.04.21 |
| [Ethereum] GSN (0) | 2022.03.15 |
| [Web3- 셋팅 문제해결] 최신 React에 Web3 설치하기 (0) | 2022.02.19 |
| [Hyperledger Besu] EC2에 Hyperledger IBFT 2.0 (POA) Network 구성하기 (1) | 2021.12.15 |