728x90

# AWS의 EC에서 ETH 서버 세팅

# 1. 기본 설치 - 회원가입 - AWS EC2 인스턴스 구축 - bc_eth.pem + putty.exe + puttyGen.exe를 이용하여 접속

putty.exe와 puttyGen.exe파일을 다운받아준다 

 

 

 

 

 

새로 만든 인스턴스에 해당하는 IP주소, SSH은 포트번호가 22

 

 

 

.pem파일을 .ppk(private key인듯)로 전환 / ubuntu@IP주소

 

 

 

 

파일질라 클라이언트에 접속해서 키파일 디렉토리 찾아서 입력해주기

 

 

 

 

# 2. eth 구성 - $ sudo apt-get update - $ sudo apt-get install software-properties-common - $ sudo add-apt-repository -y ppa:ethereum/ethereum - $ sudo apt-get update - $ sudo apt-get install ethereum

 

# 3. ftp 연결 - 파일질라 https://filezilla-project.org/

 

FileZilla - The free FTP solution

Overview Welcome to the homepage of FileZilla®, the free FTP solution. The FileZilla Client not only supports FTP, but also FTP over TLS (FTPS) and SFTP. It is open source software distributed free of charge under the terms of the GNU General Public Licen

filezilla-project.org

# 4. 네트워크 구성

- $ mkdir pri_net

- $ mkdir pri_net/ethereum

- $ mkdir pri_net/ethereum/data

 

- 계좌생성 (현 블록체인의 창시자, 관계자, ICO 투자자등등 )

- $ cd pri_net - 지정된 위치에 네트워크 구성

 

$ geth --datadir "./ethereum/data" account new

비밀번호(계좌) : 편의상 (1111)

=> 계좌의 주소

=> 0xe4123dC8c0fA4454E1413D7470d6C43e6a9E848b

- 네트워크 구성시 지급 하는 방법,

- 네트워크 구성후 송금하는 방법

 

- 제네시스 블록 생성

- 테스트 목적상 난이도를 내려서 miner 작업이 빠르게 전개되게끔 조정

- "difficulty": "0x100",

- 난이도 값을 내려서 처리

- 블록 생성시 코인을 지급해야할 대상를 기록 : alloc 항목

=============================================

"alloc": { "e4123dC8c0fA4454E1413D7470d6C43e6a9E848b":{ "balance":"100000000000000000000" } }

 

=============================================

- 네트워크 생성 - $ geth --datadir "./ethereum/data" init "./customGenesis.json"

 

- 네트워크 연결

- 로컬 - $ geth --datadir "./ethereum/data" --identity "PrivateNetwork" --port "30303" --rpc --rpcaddr 0.0.0.0 --rpccorsdomain "*" --rpcport "8123" --nodiscover --networkid 1900 --nat "any" --rpcapi "eth, db, net, web3, miner, personal" console

 

- 원격

  - 명령어

  - web3 와 같은 서드 파트 모듈을 통해서 접속

 

- 계좌 잔금 확인

- 원격 접속

+ Recent posts