返回顶部
扩大
缩小

人外有人天外有天

[eos] ubuntu16.04下载deb安装指定版本eos

前提:ubuntu 16.04

时间:2019年11月18日

下载deb

wget https://github.com/EOSIO/eos/releases/download/v1.8.6/eosio_1.8.6-1-ubuntu-16.04_amd64.deb

xuperxuperunion:eos# wget https://github.com/EOSIO/eos/releases/download/v1.8.6/eosio_1.8.6-1-ubuntu-16.04_amd64.deb
--2019-11-18 19:49:34--  https://github.com/EOSIO/eos/releases/download/v1.8.6/eosio_1.8.6-1-ubuntu-16.04_amd64.deb
Resolving github.com (github.com)... 140.82.114.4
Connecting to github.com (github.com)|140.82.114.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/87335980/7c914a80-022a-11ea-9eb9-d50d24e445ed?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191118%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191118T114934Z&X-Amz-Expires=300&X-Amz-Signature=7d0ea39f47da5487ffa1fb6c56c8e86c62893bda873054eadee23e549f4d87ce&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Deosio_1.8.6-1-ubuntu-16.04_amd64.deb&response-content-type=application%2Foctet-stream [following]
--2019-11-18 19:49:35--  https://github-production-release-asset-2e65be.s3.amazonaws.com/87335980/7c914a80-022a-11ea-9eb9-d50d24e445ed?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191118%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191118T114934Z&X-Amz-Expires=300&X-Amz-Signature=7d0ea39f47da5487ffa1fb6c56c8e86c62893bda873054eadee23e549f4d87ce&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Deosio_1.8.6-1-ubuntu-16.04_amd64.deb&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.169.163
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.169.163|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12942702 (12M) [application/octet-stream]
Saving to: ‘eosio_1.8.6-1-ubuntu-16.04_amd64.deb’

eosio_1.8.6-1-ubun 100%[================>]  12.34M  5.57MB/s    in 2.2s    

2019-11-18 19:49:38 (5.57 MB/s) - ‘eosio_1.8.6-1-ubuntu-16.04_amd64.deb’ saved [12942702/12942702]

安装

apt install ./eosio_1.8.6-1-ubuntu-16.04_amd64.deb

xuperxuperunion:eos# ls
eosio_1.8.6-1-ubuntu-16.04_amd64.deb
xuperxuperunion:eos# apt install ./eosio_1.8.6-1-ubuntu-16.04_amd64.deb 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'eosio' instead of './eosio_1.8.6-1-ubuntu-16.04_amd64.deb'
The following package was automatically installed and is no longer required:
  libopts25
Use 'apt autoremove' to remove it.
The following NEW packages will be installed:
  eosio
0 upgraded, 1 newly installed, 0 to remove and 128 not upgraded.
Need to get 0 B/12.9 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 /opt/paper2/eos/eosio_1.8.6-1-ubuntu-16.04_amd64.deb eosio amd64 1.8.6-1 [12.9 MB]
Selecting previously unselected package eosio.
(Reading database ... 227949 files and directories currently installed.)
Preparing to unpack .../eosio_1.8.6-1-ubuntu-16.04_amd64.deb ...
Unpacking eosio (1.8.6-1) ...
Setting up eosio (1.8.6-1) ...

启动keosd

keosd &

xuperxuperunion:eos# keosd &
[1] 5320
xuperxuperunion:eos# info  2019-11-18T11:53:46.613 keosd     wallet_plugin.cpp:42          plugin_initialize    ] initializing wallet plugin
info  2019-11-18T11:53:46.613 keosd     http_plugin.cpp:625           add_handler          ] add api url: /v1/keosd/stop
info  2019-11-18T11:53:46.614 keosd     http_plugin.cpp:625           add_handler          ] add api url: /v1/node/get_supported_apis
info  2019-11-18T11:53:46.614 keosd     wallet_api_plugin.cpp:73      plugin_startup       ] starting wallet_api_plugin
info  2019-11-18T11:53:46.614 keosd     http_plugin.cpp:625           add_handler          ] add api url: /v1/wallet/create
info  2019-11-18T11:53:46.614 keosd     http_plugin.cpp:625           add_handler          ] add api url: /v1/wallet/create_key

这里省略......

启动nodeos

xuperxuperunion:eos# nodeos -e -p eosio \
--plugin eosio::producer_plugin \
--plugin eosio::chain_api_plugin \
--plugin eosio::http_plugin \
--plugin eosio::history_plugin \
--plugin eosio::history_api_plugin \
--filter-on="*" \
--access-control-allow-origin='*' \
--contracts-console \
--http-validate-host=false \
--verbose-http-errors >> nodeos.log 2>&1 &
[2] 5329

检查安装

运行tail -f nodeos.log

看到如下输出

按下ctrl + c以关闭日志

xuperxuperunion:eos# tail -f nodeos.log
info  2019-11-18T11:56:23.500 nodeos    producer_plugin.cpp:1914      produce_block        ] Produced block 0000007aee642704... #122 @ 2019-11-18T11:56:23.500 signed by eosio [trxs: 0, lib: 121, confirmed: 0]
info  2019-11-18T11:56:24.000 nodeos    producer_plugin.cpp:1914      produce_block        ] Produced block 0000007b749e366d... #123 @ 2019-11-18T11:56:24.000 signed by eosio [trxs: 0, lib: 122, confirmed: 0]

检查电子钱包

运行cleos wallet list

xuperxuperunion:eos# cleos wallet list
Wallets:
[]

检查nodeos节点

curl http://localhost:8888/v1/chain/get_info

xuperxuperunion:eos# curl http://localhost:8888/v1/chain/get_info
{"server_version":"3c553db7","chain_id":"cf057bbfb72640471fd910bcb67639c22df9f92470936cddc1ade0e2f2e7dc4f","head_block_num":447,"last_irreversible_block_num":446,"last_irreversible_block_id":"000001be0fa993219ee90b2a06d8ef91f988b2b33dce7164cafc424612f4d9bf","head_block_id":"000001bf0e74779926cab9e9baa8ed7510082a9b7df1590cda813cf6e6b831b3","head_block_time":"2019-11-18T11:59:06.000","head_block_producer":"eosio","virtual_block_cpu_limit":312199,"virtual_block_net_limit":1638021,"block_cpu_limit":199900,"block_net_limit":1048576,"server_version_string":"v1.8.6","fork_db_head_block_num":447,"fork_db_head_block_id":"000001bf0e74779926cab9e9baa8ed7510082a9b7df1590cda813cf6e6b831b3"}

posted on 2019-11-25 16:35  笔记是研究的开始  阅读(657)  评论(0编辑  收藏  举报

导航