ubuntu安装最新的eos版本eosio-1.4.3.ubuntu-16.04-x86_64

ubuntu安装最新的eos版本eosio-1.4.3.ubuntu-16.04-x86_64

1.备份文件

cp /etc/apt/sources.list    /etc/apt/sources.list.back

2.编辑文件替换镜像源

vim /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted
deb http://security.ubuntu.com/ubuntu/ bionic-security universe
deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse

3.更新镜像源

apt-get update

3.下载wget

apt-get install wget

4.安装git

sudo apt-get install git

5.安装插件

sudo apt-get install clang-4.0 lldb-4.0 libclang-4.0-dev cmake make automake libbz2-dev libssl-dev libgmp3-dev autotools-dev build-essential libicu-dev python2.7-dev python3-dev autoconf libtool zlib1g-dev doxygen graphviz

6.克隆代码

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

7.编译代码

cd eos
sudo ./eosio_build.sh 

8.配置mongodb

 find / -name mongod
 ln -s /root/opt/mongodb-linux-x86_64-3.6.3/bin/mongod /usr/bin/mongod

9.mongod配置文件/etc/mongod/mongod.conf

# mongod.conf    https://gist.github.com/duartealexf/d864660314ab649622056e910bc9f790

# for documentation of all options, see:
#   http://docs.mongodb.org/manual/reference/configuration-options/

# where to write logging data.
systemLog:
  destination: file
  logAppend: true
  path: /var/log/mongod.log

# Where and how to store data.
storage:
  dbPath: /data/mongod
  journal:
    enabled: true
#  engine:
#  mmapv1:
#  wiredTiger:

# how the process runs
processManagement:
  fork: true  # fork and run in background
  pidFilePath: /var/run/mongodb/mongod.pid  # location of pidfile

# network interfaces
net:
  port: 27017
  bindIp: localhost,127.0.0.1,192.168.2.21  # Listen to local interface only, comment to listen on all interfaces.
  bindIpAll: true
security:
  authorization: enabled

#operationProfiling:

#replication:

#sharding:

## Enterprise-Only Options

#auditLog:

10.启动mongod,停止mongod

mongod -f /etc/mongod/mongodb.conf

mongod -f /etc/mongod/mongodb.conf  --shutdown

11.安装mongod-client

apt-get install mongod-client
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值