您好,登錄后才能下訂單哦!
這篇文章主要講解了“安裝fabric ca的步驟”,文中的講解內(nèi)容簡單清晰,易于學(xué)習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習“安裝fabric ca的步驟”吧!
1. 安裝fabric ca
配置 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
安裝依賴
yum install libtool libltdl-dev
安裝
go get -u github.com/hyperledger/fabric-ca/cmd/...
查看版本
fabric-ca-server version
2. 安裝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;
開啟binlog
yum install vim
vim /etc/my.cnf
#添加
log-bin=mysql-bin
server-id=1
設(shè)置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. 初始化
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 &
感謝各位的閱讀,以上就是“安裝fabric ca的步驟”的內(nèi)容了,經(jīng)過本文的學(xué)習后,相信大家對安裝fabric ca的步驟這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是億速云,小編將為大家推送更多相關(guān)知識點的文章,歡迎關(guān)注!
免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。