Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Steps to install fabric ca

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains the "steps to install fabric ca", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn the "steps to install fabric ca" bar!

1. Install fabric ca

Configure go

Wget https://dl.google.com/go/go1.11.2.linux-amd64.tar.gz

Export GOROOT=/opt/go

Export PATH=$GOROOT/bin:$PATH

Export GOPATH=$HOME/go

Export PATH=$PATH:$HOME/go/bin

Installation dependency

Yum install libtool libltdl-dev

Installation

Go get-u github.com/hyperledger/fabric-ca/cmd/...

View version

Fabric-ca-server version

two。 Install mysql

Wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm

Rpm-ivh mysql57-community-release-el7-9.noarch.rpm

Yum install mysql-server

Systemctl start mysqld

Systemctl enable mysqld

Grep 'temporary password' / var/log/mysqld.log

Mysql-u root-p

Set global validate_password_policy=0

Set password=password ("fly123456")

GRANT ALL PRIVILEGES ON *. * TO 'root'@'%' IDENTIFIED BY' fly123456' WITH GRANT OPTION

FLUSH PRIVILEGES

Turn on binlog

Yum install vim

Vim / etc/my.cnf

# add

Log-bin=mysql-bin

Server-id=1

Set up sqlmod

Sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'

Systemctl restart mysqld

Show variables like 'log_%'

Show master logs

3. Initialization

Mkdir-p / opt/fabricca

Fabric-ca-server init-b admin:adminpw

Db:

Type: mysql

Datasource: root:fly123456@tcp (localhost:3306) / fabric_ca?parseTime=true

Nohup fabric-ca-server start-b admin:adminpw-d &

Thank you for your reading, the above is the "steps to install fabric ca" content, after the study of this article, I believe you have a deeper understanding of the steps to install fabric ca, the specific use of the need for you to practice and verify. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report