FISCO BCOS (15) Overall environment deployment

Build the environment from scratch and take away the trouble of environment error reporting, greatly saving you learning costs.

Prerequisite: Use the command to solve the problem that the virtual machine cannot be copied and pasted in the computer.


//安装工具open-vm-tools

sudo apt-get install open-vm-tools
//安装工具open-vm-tools-desktop

sudo apt-get install open-vm-tools-desktop

//重启:reboot

1. Install ubuntu dependencies (future operations will be based on Ubuntu operations)

sudo apt install -y openssl curl


2. Create an operating directory and download the installation script

cd ~ && mkdir -p fisco && cd fisco
 
 curl -#LO https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/FISCO-BCOS/FISCO-BCOS/releases/v2.9.1/build_chain.sh && chmod u+x build_chain.sh

3. Prepare to install java as a dependency (java 14 is recommended)

sudo apt install -y default-jdk

配置环境
sudo vim /etc/profile
 
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
 
source /etc/profile  ###更新一下配置文件

 4. Get the console

Console related commandsCSDN

cd ~/fisco && curl -#LO https://gitee.com/FISCO-BCOS/console/raw/master-2.0/tools/download_console.sh && bash download_console.sh

5.webase-front downloads the installation package (recommended to be under the fisco file)

wget https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/WeBASE/releases/download/v1.5.5/webase-front.zip

6. One-click deployment environment configuration

mysql配置

sudo apt-get install mysql-server -y #mysql 服务端

sudo apt install mysql-client -y #mysql 客户端

python3配置

// 添加仓库,回车继续
sudo add-apt-repository ppa:deadsnakes/ppa
// 安装python 3.6
sudo apt-get install -y python3.6
sudo apt-get install -y python3-pip

 The following results indicate that the installation is successful.

 Install webase-deploy

wget https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/WeBASE/releases/download/v1.5.5/webase-deploy.zip

MySQL also needs to be initialized when one-click deployment is started. For details, refer toGetting Started with FISCO BCOS (13) Webase One-click Deployment and Its Use - CSDN Blog

7. Script used to obtain black and white lists.

Obtain the certificate generation script (under nodes/127.0.0.1)

curl -#LO https://gitee.com/FISCO-BCOS/FISCO-BCOS/raw/master-2.0/tools/gen_node_cert.sh

 Be sure to wait until it appears 100%

8. Install VIM editor
 

sudo apt install npm

sudo apt install vim

End~ I hope this blog can help you, please send me a private message for more services.

Guess you like

Origin blog.csdn.net/2302_77339802/article/details/134206171