搭建EOS环境
【搭建EOS环境】
1、Ubuntu 18.04 下安装eosio
wget https://github.com/eosio/eos/releases/download/v1.4.4/eosio_1.4.4-1-ubuntu-18.04_amd64.deb
sudo apt install ./eosio_1.4.4--ubuntu-.04_amd64.deb
在~目录下创建 contracts 目录。
2、启动钱包。
keosd &
启动成功的话,可以看见下面的输出。
info --26T06::24.789 thread- wallet_plugin.cpp: plugin_initialize ] initializing wallet plugin
info --26T06::24.795 thread- http_plugin.cpp: add_handler ] add api url: /v1/keosd/stop
info --26T06::24.796 thread- wallet_api_plugin.cpp: plugin_startup ] starting wallet_api_plugin
info --26T06::24.796 thread- http_plugin.cpp: add_handler ] add api url: /v1/wallet/create
info --26T06::24.796 thread- http_plugin.cpp: add_handler ] add api url: /v1/wallet/create_key
info --26T06::24.796 thread- http_plugin.cpp: add_handler ] add api url: /v1/wallet/get_public_keys
3、启动nodeos
nodeos -e -p eosio \
--plugin eosio::producer_plugin \
--plugin eosio::chain_api_plugin \
--plugin eosio::http_plugin \
-d /home/ubuntu/contracts/eosio/data \
--config-dir /home/ubuntu/contracts/eosio/config \
--access-control-allow-origin=* \
--contracts-console \
--http-validate-host=false \
—filter-on=‘*’ >> nodeos.log >& &
These settings accomplish the following:
Using a work directory for blockchain data and configuration in eosio directory under the development directory. Here we use eosio/data and eosio/config respectively
Run the Nodeos. This command loads all the basic plugins, set the server address, enable CORS and add some contract debugging and logging.
Enable CORS with no restrictions (*)
通过以下命令检验是否成功运行nodeos
tail -f nodeos.log
如果有以下输出,则成功了。
1929001ms thread- producer_plugin.cpp: block_production_loo ] Produced block 0000366974ce4e2a... # @ --23T16::09.000 signed by eosio [trxs: , lib: , confirmed: ]
1929502ms thread- producer_plugin.cpp: block_production_loo ] Produced block 0000366aea085023... # @ --23T16::09.500 signed by eosio [trxs: , lib: , confirmed: ]
1930002ms thread- producer_plugin.cpp: block_production_loo ] Produced block 0000366b7f074fdd... # @ --23T16::10.000 signed by eosio [trxs: , lib: , confirmed: ]
1930501ms thread- producer_plugin.cpp: block_production_loo ] Produced block 0000366cd8222adb... # @ --23T16::10.500 signed by eosio [trxs: , lib: , confirmed: ]
1931002ms thread- producer_plugin.cpp: block_production_loo ] Produced block 0000366d5c1ec38d... # @ --23T16::11.000 signed by eosio [trxs: , lib: , confirmed: ]
1931501ms thread- producer_plugin.cpp: block_production_loo ] Produced block 0000366e45c1f235... # @ --23T16::11.500 signed by eosio [trxs: , lib: , confirmed: ]
1932001ms thread- producer_plugin.cpp: block_production_loo ] Produced block 0000366f98adb324... # @ --23T16::12.000 signed by eosio [trxs: , lib: , confirmed: ]
1932501ms thread- producer_plugin.cpp: block_production_loo ] Produced block 00003670a0f01daa... # @ --23T16::12.500 signed by eosio [trxs: , lib: , confirmed: ]
1933001ms thread- producer_plugin.cpp: block_production_loo ] Produced block 00003671e8b36e1e... # @ --23T16::13.000 signed by eosio [trxs: , lib: , confirmed: ]
1933501ms thread- producer_plugin.cpp: block_production_loo ] Produced block 0000367257fe1623... # @ --23T16::13.500 signed by eosio [trxs: , lib: , confirmed: ]
4、使用cleos查看钱包
cleos wallet list
你应该看见如下输出:
Wallets:
[]
5、可以查看 ~/contracts/eosio/config/config.ini 文件,可以看到默认nodeos端口为8888.

cleos默认通过localhost:8888来连接nodeos。
可以通过http来发起请求来测试这个端口。
curl http://localhost:7777/v1/chain/get_info
参考:
1、https://developers.eos.io/eosio-home/docs/setting-up-your-environment
2、https://developers.eos.io/eosio-home/docs/getting-the-software
搭建EOS环境的更多相关文章
- EOS智能合约开发(一):EOS环境搭建和启动节点
EOS和以太坊很像,EOS很明确的说明它就是一个区块链的操作系统,BM在博客中也是说过的. 可以这样比喻,EOS就相当于内置激励系统的Windows/Linux/MacOS,这是它的一个定位. 包括以 ...
- Flume1 初识Flume和虚拟机搭建Flume环境
前言: 工作中需要同步日志到hdfs,以前是找运维用rsync做同步,现在一般是用flume同步数据到hdfs.以前为了工作简单看个flume的一些东西,今天下午有时间自己利用虚拟机搭建了 ...
- 搭建LNAMP环境(七)- PHP7源码安装Memcached和Memcache拓展
上一篇:搭建LNAMP环境(六)- PHP7源码安装MongoDB和MongoDB拓展 一.安装Memcached 1.yum安装libevent事件触发管理器 yum -y install libe ...
- 搭建LNAMP环境(二)- 源码安装Nginx1.10
上一篇:搭建LNAMP环境(一)- 源码安装MySQL5.6 1.yum安装编译nginx需要的包 yum -y install pcre pcre-devel zlib zlib-devel ope ...
- 搭建LNAMP环境(一)- 源码安装MySQL5.6
1.yum安装编译mysql需要的包 yum -y install gcc-c++ make cmake bison-devel ncurses-devel perl 2.为mysql创建一个新的用户 ...
- Linux 14.04lts 环境下搭建交叉编译环境arm-linux-gcc-4.5.1
交叉编译工具链是为了编译.链接.处理和调试跨平台体系结构的程序代码,在该环境下编译出嵌入式Linux系统所需要的操作系统.应用程序等,然后再上传到目标板上. 首 先要明确gcc 和arm-linux- ...
- GJM : Unity3D HIAR -【 快速入门 】 二、搭建开发环境
感谢您的阅读.喜欢的.有用的就请大哥大嫂们高抬贵手"推荐一下"吧!你的精神支持是博主强大的写作动力以及转载收藏动力.欢迎转载! 版权声明:本文原创发表于 [请点击连接前往] ,未经 ...
- Mac下maven工程的创建,并搭建SSH环境
最近项目有用到maven,就特地学了一下.maven的一句话攻略就是,项目托管.帮你解决各种项目琐事:清理,导包....等等. 首先先到apach官网去下载一个maven的包,http://maven ...
- maven实战(01)_搭建开发环境
一 下载maven 在maven官网上可下载maven:http://maven.apache.org/download.cgi 下载好后,解压.我的解压到了:D:\maven\apache-mave ...
随机推荐
- cocos2dx解决中文乱码方法
使用plist文件,优点方便做多国语言支持~也不用去做编码转换 1.Resource目录下新建text.plist文件,内容格式如下 <?xml version="1.0" ...
- SQL-记录查询篇-009
在学习记录查询之前,学习一些关键字的使用: 1.逻辑运算符:and . or . not .is null select * from table_name where id>2 and ...
- CodeForces - 13E
Little Petya likes to play a lot. Most of all he likes to play a game «Holes». This is a game for on ...
- Spring Boot 非常好的学习资料
from@https://gitee.com/didispace/SpringBoot-Learning Spring Boot 2.0 新特性学习 简介与概览 Spring Boot 2.0 正式发 ...
- 【js字符串当做数组来使用】浪费一晚【想出了3个解决方案】
数据库的所有数据都打成字符串发到前端. 不必把它的类型也强制转成int这类的,页面负责字符串的展示 这样做可以修改页面的数据 response.setHeader("Content-type ...
- Java中的接口和抽象类
接口和抽象类是Java设计中最基本的概念,它们都不能实例化对象,都可以实现多态,也都能用来创建匿名内部类.但实际使用上还有很多的不同. 两者的语法定义不同,对应的设计抽象关系也不同,接口主要是对行为的 ...
- CSS 社区的解决方案,对比
在众多解决方案中,没有绝对的优劣.还是要结合自己的场景来决定. 我们团队在使用过 scss 和 css modules 后,仍然又重新选择了使用 scss.css modules 虽然有效解决了样式冲 ...
- asp.net:mv4 FileResult在IE8中下载不显示文件名和扩展名而显示Action方法名了!
IE8下,用户点击下载文件,会发现文件类型失丢的问题,解决方案如下: //IE8下载时,只显示action的名字,没有文件名和后缀 @仰止网Simba //return File(bufferbyte ...
- Win7系统安装Centos7.0双系统(三)
4.6语言选择 4.7安装信息设置,除以下几项改动其他都可默认. 软件选择(默认最小):带GUI的服务器或GNOME桌面,可根据使用需要选择安装软件. 磁盘分区:Linux默认可分为3个分区,分别是b ...
- java中如何给控件设置颜色
1. tv.setTextColor(Color.parseColor("#000000"));2. tv.setTextColor(getResources().getCo ...