ubuntu는 최신 eos 버전 eosio-1.4.3을 설치합니다.ubuntu-16.04-x86_64

4335 단어 서버eos

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. 몬god 시작, 몬god 중지
mongod -f /etc/mongod/mongodb.conf

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

11. mongod-client 설치
apt-get install mongod-client

좋은 웹페이지 즐겨찾기