How to set up Conflux

1.How to set up Conflux on Mac OSX

2.How to set up Conflux on Windows

3.How to set up Conflux on Linux

1.How to set up Conflux on Mac OSX

Installation depends

  1. Installation Rust
curl https://sh.rustup.rs -sSf | sh
复制代码
  1. installation llvm
  • You may need to install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
复制代码
  • installation llvm
brew install llvm
复制代码

Compile source code

  1. Pulling and compile
git clone https://github.com/Conflux-Chain/conflux-rust
cd conflux-rust

cargo build --release
复制代码
  • The resulting binary file path: target/release/conflux

Configured and running Conflux

  1. In the conflux-wallet generates wallet, purse obtain address
  • New Wallet
  • Backup Mnemonic
  • set password
  • Create Now

You can create a wallet, purse and get the address.

  1. Modify the configuration file: Path run/default.toml(search to find the conflux-rust this folder, click run file, default.toml open this file with a text editor)
  • public_address : xx.xx.xx.xx:32323

Export gateway address can be in the Baidu search bar enter: ip, to get their export specified public IP address and port default port is 32323 (ip address on the back of copy Baidu to add.. ": 32323," is the ultimate style xx .xx.xx.xx: 32323)

  • mining_author:. credits received address prefix received credits 0xneed to be removed, such as credits received address. 0xb4aa17059a0f2dbf539d1cdec662177af963a078, where the configuration is:b4aa17059a0f2dbf539d1cdec662177af963a078

Enter the wallet address this line of code to remove the front part of the "#"

  1. Run conflux
# 必须

cd $HOME/conflux-rust/run 

../target/release/conflux --config default.toml &
复制代码
  1. stop mining
kill `ps -ef | awk '/conflux/ && !/awk/ {print $2}'`
复制代码

2.How to set up Conflux on Windows

Installation depends

  1. Install Visual Studio.
  • Download: Visual Studio the Download
  • Select Community Edition 2019-- mounting load select "Use C ++ desktop development."
  • Double-click the installation
  1. Installation Rust
  • Download: Rust the Download

  • Double-click the installation

    Pop interactive: Input 1, Enter 1 - the default installation 2 - Custom Installation 3 - Canceled

  1. Install and start msvc

In the cmd command line:

rustup default stable-x86_64-pc-windows-msvc
复制代码
  1. Installation clang
  • Download: LLVM Download

  • Double-installation. (PS: Select all of the added used LLVM PATH environment variable)

  1. Install git
  • Download: Git the Download

    Select 32/64 bit versions according to their configuration

  • Double-click the installation

Compile Conflux

  1. Pulling and compile
git clone https://github.com/Conflux-Chain/conflux-rust
cd conflux-rust

cargo build --release 
复制代码

Executable binary files: target/release/conflux.exe

Configured and running Conflux

  1. In the conflux-wallet generates wallet, purse obtain address
  • New Wallet
  • Backup Mnemonic
  • set password
  • Create Now

You can create a wallet, purse and get the address.

  1. Modify the configuration file: Locate the conflux-rust this file conflux-rust/run/default.toml(Notepad to open)
  • public_address : xx.xx.xx.xx:32323

Specify your own export public IP address and port to port 32323 by default gateway address can be exported in the Baidu search bar enter:. Ip, to get.

  • mining_author:. credits received address prefix received credits 0xneed to be removed, such as credits received address. 0xb4aa17059a0f2dbf539d1cdec662177af963a078, where the configuration is:b4aa17059a0f2dbf539d1cdec662177af963a078

Enter the wallet address this line of code to remove the front part of the "#"

  1. Run conflux
# 必须


cd \Users\xxx\conflux-rust\run 
(xxx是用户名,你自己的电脑)
\Users\xxx\conflux-rust\target\release\conflux.exe --config default.toml
复制代码

3.How to set up Conflux on Linux

Installation depends

  1. Installation Rust
curl https://sh.rustup.rs -sSf | sh
复制代码
  1. installation clang
  • CentOS/Redhat: yum install clang
  • Ubuntu: apt-get install clang
  1. Environment Variables
export PATH=$HOME/.cargo/bin:$PATH
复制代码
  1. C ++ installation
  • CentOS/Redhat

sudo yum -y install gcc-c++
复制代码
  • Ubuntu

sudo apt-get install g++
复制代码

Compile source code

  1. Pulling and compile
git clone https://github.com/Conflux-Chain/conflux-rust
cd conflux-rust

cargo build --release
复制代码

The resulting binary file path: target/release/conflux

Configured and running Conflux

  1. In the conflux-wallet generates wallet, purse obtain address
  • New Wallet
  • Backup Mnemonic
  • set password
  • Create Now

You can create a wallet, purse and get the address.

  1. Modify the configuration file: /run/default.toml
  • public_address : xx.xx.xx.xx:32323

Specify your own export public IP address and port to port 32323 by default gateway address can be exported in the Baidu search bar enter:. Ip, to get.

  • mining_author:. credits received address prefix received credits 0xneed to be removed, such as credits received address. 0xb4aa17059a0f2dbf539d1cdec662177af963a078, where the configuration is:b4aa17059a0f2dbf539d1cdec662177af963a078
  1. Run conflux
# 必须
cd run 

../target/release/conflux --config default.toml
复制代码

Guess you like

Origin blog.csdn.net/weixin_33991727/article/details/91392367