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

你可能感兴趣的:(服务器,eos)