您好,登錄后才能下訂單哦!
這篇文章主要講解了“安裝fabric ca的步驟”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“安裝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
設置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的步驟”的內容了,經過本文的學習后,相信大家對安裝fabric ca的步驟這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是億速云,小編將為大家推送更多相關知識點的文章,歡迎關注!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。