Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static Build CKB on CentOS 7 for exchanges #626

Closed
puffanddmx opened this issue May 5, 2019 · 1 comment
Closed

Static Build CKB on CentOS 7 for exchanges #626

puffanddmx opened this issue May 5, 2019 · 1 comment
Labels
t:doc Type: Documentation

Comments

@puffanddmx
Copy link

puffanddmx commented May 5, 2019

centos 7 install guide

  • version : CentOS-7-x86_64-Minimal

centos 7 local time setting

  • (#) ls /usr/share/zoneinfo/Asia
  • (#) mv /etc/localtime /etc/localtime_org
  • (#) ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
  • date

cargo install

cargo path setting

  • (#) vi .bash_profile
    -> export PATH="$HOME/.cargo/bin:$PATH" (path check)
  • (#) source .bash_profile
  • (#) which cargo
    ->/root/.cargo/bin/cargo (path check)

clang & llvm install

  • (#) yum install centos-release-scl -y
  • (#) yum install llvm-toolset-7 -y
  • (#) scl enable llvm-toolset-7 bash

gcc install

  • (#) yum install gcc-c++ -y

openssl install

  • (#) yum install openssl-devel -y

git install

  • (#) yum install git -y

source download

build

  • (#) make build

ckb daemon file location

  • (#) cd target/release
    -> you can see the ckb daemon file. copy and run it with your working folder.

configuration setting for dev mode

  • (#) ./ckb init
    -> ckb-miner.toml , ckb.toml created

configuration setting for testnet mode

  • (#) ./ckb init --spec testnet
    -> ckb-miner.toml , ckb.toml created

ckb dev mode daemon run for mining

  • (#) nohup ./ckb run &
  • (#) nohup ./ckb miner &

dev mode port

  • p2p port : 8115
  • rpc port : 8114

ckb folder structure

  • (#) yum install tree -y
  • (#) tree
    ├── ckb
    ├── ckb-miner.toml
    ├── ckb.toml
    └── data (db, logs, network)
@puffanddmx puffanddmx changed the title Build CKB on CentOS 7 for exchanges Static Build CKB on CentOS 7 for exchanges May 6, 2019
@doitian doitian added this to the backlog milestone May 6, 2019
@doitian
Copy link
Member

doitian commented May 6, 2019

Thanks for providing the information.

@doitian doitian added the t:doc Type: Documentation label May 6, 2019
@doitian doitian removed this from the backlog milestone May 16, 2019
@doitian doitian closed this as completed May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t:doc Type: Documentation
Projects
None yet
Development

No branches or pull requests

2 participants