[EOS] eos 설치 방법 정리

in #eos6 years ago (edited)

[출처]

1. 설치 환경

(1) Ubuntu 17.10
(2) RAM: 16GB
(3) HDD: 100GB (SSD)

2. github의 eosio/eos 로컬서버로 복사

>> git clone https://github.com/EOSIO/eos --recursive

3. 소스 코드 빌드

(1) 의존성 라이브러리 설치 및 eos 빌드

>> cd eos
>> time ./eosio_build.sh     # 약 90분 필요

(2) 빌드 테스트 확인

>> cd build
>> make test

4. 실행 파일 인스톨

>> cd ~/eos/build
>> sudo make install

5. 싱글노드 로컬 테스트넷 수행

(1) 로컬 테스트넷 서버 시작 명령

>> ./programs/nodeos

(2) 'Control+C' 로 실행 중지
(3) 로컬 테스트넷 서버 설정 파일 수정

  • 설정 파일 경로: ~/.local/share/eosio/nodeos/config (리눅스 기준)
>> vim ~/.local/share/eosio/nodeos/config/config.ini
   # Load the testnet genesis state, which creates some initial block producers with the default key
   genesis-json = /path/to/eos/source/genesis.json
   # Enable production on a stale chain, since a single-node test chain is pretty much always stale
   enable-stale-production = true
   # Enable block production with the testnet producers
   producer-name = eosio
   # Load the block producer plugin, so you can produce blocks
   plugin = eosio::producer_plugin
   # Wallet plugin
   plugin = eosio::wallet_api_plugin
   # As well as API and HTTP plugins
   plugin = eosio::chain_api_plugin
   plugin = eosio::http_plugin
   # This will be used by the validation step below, to view account history
   plugin = eosio::account_history_api_plugin
   plugin = eosio::mongo_db_plugin

(4) 로컬 테스트넷 서버 재시작

>> ./programs/nodeos

(5) 데이터 저장 경로 확인 사항

  • 데이터 저장 경로: ~/.local/share/eosio/nodeos/data (리눅스 기준)
Sort:  

Congratulations @penta82! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Are you a DrugWars early adopter? Benvenuto in famiglia!
Vote for @Steemitboard as a witness to get one more award and increased upvotes!