블로그

[EOS] EOSIO 바이너리 설치 및 실행

우분투 18.04 에서 테스트 되었습니다.

EOSIO 바이너리 설치 및 구동입니다.

root 계정이 아닌 일반 계정으로 진행합니다.

# wget https://github.com/EOSIO/eos/releases/download/v1.7.0/eosio_1.7.0-1-ubuntu-18.04_amd64.deb
# sudo apt install ./eosio_1.7.0-1-ubuntu-18.04_amd64.deb

여기까지 설치이고 다음부터는 구동입니다.

keosd 실행

# keosd &
[1] 3156
info  2019-07-19T08:23:53.027 thread-0  wallet_plugin.cpp:42          plugin_initialize    ] initializing wallet plugin
info  2019-07-19T08:23:53.028 thread-0  http_plugin.cpp:622           add_handler          ] add api url: /v1/keosd/stop
info  2019-07-19T08:23:53.029 thread-0  http_plugin.cpp:622           add_handler          ] add api url: /v1/node/get_supported_apis
info  2019-07-19T08:23:53.029 thread-0  wallet_api_plugin.cpp:73      plugin_startup       ] starting wallet_api_plugin
info  2019-07-19T08:23:53.029 thread-0  http_plugin.cpp:622           add_handler          ] add api url: /v1/wallet/create
info  2019-07-19T08:23:53.029 thread-0  http_plugin.cpp:622           add_handler          ] add api url: /v1/wallet/create_key
info  2019-07-19T08:23:53.029 thread-0  http_plugin.cpp:622           add_handler          ] add api url: /v1/wallet/get_public_keys
info  2019-07-19T08:23:53.029 thread-0  http_plugin.cpp:622           add_handler          ] add api url: /v1/wallet/import_key
info  2019-07-19T08:23:53.029 thread-0  http_plugin.cpp:622           add_handler          ] add api url: /v1/wallet/list_keys
info  2019-07-19T08:23:53.029 thread-0  http_plugin.cpp:622           add_handler          ] add api url: /v1/wallet/list_wallets
info  2019-07-19T08:23:53.029 thread-0  http_plugin.cpp:622           add_handler          ] add api url: /v1/wallet/lock
info  2019-07-19T08:23:53.029 thread-0  http_plugin.cpp:622           add_handler          ] add api url: /v1/wallet/lock_all
info  2019-07-19T08:23:53.029 thread-0  http_plugin.cpp:622           add_handler          ] add api url: /v1/wallet/open
info  2019-07-19T08:23:53.030 thread-0  http_plugin.cpp:622           add_handler          ] add api url: /v1/wallet/remove_key
info  2019-07-19T08:23:53.030 thread-0  http_plugin.cpp:622           add_handler          ] add api url: /v1/wallet/set_timeout
info  2019-07-19T08:23:53.030 thread-0  http_plugin.cpp:622           add_handler          ] add api url: /v1/wallet/sign_digest
info  2019-07-19T08:23:53.030 thread-0  http_plugin.cpp:622           add_handler          ] add api url: /v1/wallet/sign_transaction
info  2019-07-19T08:23:53.030 thread-0  http_plugin.cpp:622           add_handler          ] add api url: /v1/wallet/unlock

nodeos 실행

개발을 위한 설정으로 실행이니 실제 운영은 다를 수 있습니다.

# nodeos -e -p eosio \
> --plugin eosio::producer_plugin \
> --plugin eosio::chain_api_plugin \
> --plugin eosio::http_plugin \
> --access-control-allow-origin='*' \
> --contracts-console \
> --http-validate-host=false \
> --verbose-http-errors >> nodeos.log 2>&1 &

실행 후 확인은

# tail -f nodeos.log

info  2019-07-19T08:30:50.501 thread-0  producer_plugin.cpp:1596      produce_block        ] Produced block 0000002a86905134... #42 @ 2019-07-19T08:30:50.500 signed by eosio [trxs: 0, lib: 41, confirmed: 0]
info  2019-07-19T08:30:51.001 thread-0  producer_plugin.cpp:1596      produce_block        ] Produced block 0000002b2fd77db0... #43 @ 2019-07-19T08:30:51.000 signed by eosio [trxs: 0, lib: 42, confirmed: 0]
info  2019-07-19T08:30:51.500 thread-0  producer_plugin.cpp:1596      produce_block        ] Produced block 0000002cee9266f7... #44 @ 2019-07-19T08:30:51.500 signed by eosio [trxs: 0, lib: 43, confirmed: 0]
info  2019-07-19T08:30:52.001 thread-0  producer_plugin.cpp:1596      produce_block        ] Produced block 0000002d9a157ce0... #45 @ 2019-07-19T08:30:52.000 signed by eosio [trxs: 0, lib: 44, confirmed: 0]
info  2019-07-19T08:30:52.501 thread-0  producer_plugin.cpp:1596      produce_block        ] Produced block 0000002e283630e7... #46 @ 2019-07-19T08:30:52.500 signed by eosio [trxs: 0, lib: 45, confirmed: 0]
info  2019-07-19T08:30:53.001 thread-0  producer_plugin.cpp:1596      produce_block        ] Produced block 0000002fbc354c55... #47 @ 2019-07-19T08:30:53.000 signed by eosio [trxs: 0, lib: 46, confirmed: 0]
info  2019-07-19T08:30:53.501 thread-0  producer_plugin.cpp:1596      produce_block        ] Produced block 0000003096dc41bd... #48 @ 2019-07-19T08:30:53.500 signed by eosio [trxs: 0, lib: 47, confirmed: 0]
info  2019-07-19T08:30:54.001 thread-0  producer_plugin.cpp:1596      produce_block        ] Produced block 000000318fabc3f6... #49 @ 2019-07-19T08:30:54.000 signed by eosio [trxs: 0, lib: 48, confirmed: 0]
info  2019-07-19T08:30:54.501 thread-0  producer_plugin.cpp:1596      produce_block        ] Produced block 00000032c9d8ef81... #50 @ 2019-07-19T08:30:54.500 signed by eosio [trxs: 0, lib: 49, confirmed: 0]

Wallet 확인

# cleos wallet list
Wallets:
[]

nodeos 엔드포인트 확인

nodeos 설치가 정상적인지 확인합니다.

# curl http://localhost:8888/v1/chain/get_info
{"server_version":"686f0deb","chain_id":"cf057bbfb72640471fd910bcb67639c22df9f92470936cddc1ade0e2f2e7dc4f","head_block_num":946,"last_irreversible_block_num":945,"last_irreversible_block_id":"000003b14775f71f4700b1c8bc6c4e983a66de42494d1958a8ca81efb13968ea","head_block_id":"000003b265296e16384e48c873dcd7915b95a66a5f6c8c23d7e35eec8448c12a","head_block_time":"2019-07-19T08:38:22.500","head_block_producer":"eosio","virtual_block_cpu_limit":514012,"virtual_block_net_limit":2698286,"block_cpu_limit":199900,"block_net_limit":1048576,"server_version_string":"v1.7.0"}