当前位置: 首页 > news >正文

webase全家桶搭建教程过程记录+bug解决

前置条件

Ubuntu20


基础环境搭建

检查Java

java -version

检查mysql(Ubuntu部署MySQL)

mysql --version

 在装MySQL的时候发现了一个问题

就是不管怎么sudo mysql_secure_installation,,第二步设置密码就是不对,解决方案如下

用这个命令进入mysql

sudo mysql

在sql命令行输入以下命令回车,你就可以把密码改成mynewpassword(自己的密码)

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'mynewpassword';

exit回到终端命令行,输入:

sudo mysql_secure_installation
 里面就是这五个步骤
(1)安装验证密码插件。(2)设置root管理员在数据库中的专有密码。(3)随后删除匿名账户,并使用root管理员从远程登录数据库,以确保数据库上运行的业务的安全性。(4)删除默认的测试数据库,取消测试数据库的一系列访问权限。(5)刷新授权列表,让初始化的设定立即生效。

 

检查Python

使用Python3.6或以上版本:

python --version
# python3时
python3 --version

PyMySQL部署(Python3.6+)

Python3.6及以上版本,需安装PyMySQL依赖包

sudo apt-get install -y python3-pip
sudo pip3 install PyMySQL

这个时候会遇到一个bug

 这个bug是因为超时了,解决方法为多试几次或者换源,这里为了后续方便我们使用换源的方式

pip install requests -i http://mirrors.aliyun.com/pypi/simple/附上其他源:
阿里云 http://mirrors.aliyun.com/pypi/simple/中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/豆瓣(douban) http://pypi.douban.com/simple/清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

应用部署

拉取依赖安装包

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

解压安装包

unzip webase-deploy.zip

进入目录

cd webase-deploy

部署配置

vi common.properties
[common]# Webase Subsystem Version (v1.1.0 or above)
webase.web.version=v1.5.4
webase.mgr.version=v1.5.4
webase.sign.version=v1.5.3
webase.front.version=v1.5.4#####################################################################
# if use [installDockerAll] to install WeBASE by docker
# if use [installAll] or [installWeBASE], ignore configuration here# 1: enable mysql in docker
# 0: mysql run in host, required fill in the configuration of webase-node-mgr and webase-sign
docker.mysql=1# if [docker.mysql=1], mysql run in host (only works in [installDockerAll])
# run mysql 5.6 by docker
docker.mysql.port=23306
# default user [root]
docker.mysql.password=123456
###################################################################### Mysql database configuration of WeBASE-Node-Manager
mysql.ip=localhost
mysql.port=3306
mysql.user=root
mysql.password=fisco
mysql.database=webasenodemanager# Mysql database configuration of WeBASE-Sign
sign.mysql.ip=localhost
sign.mysql.port=3306
sign.mysql.user=root
sign.mysql.password=fisco
sign.mysql.database=webasesign
# if docker mysql disabled[docker.mysql=0] above# H2 database name of WeBASE-Front (docker mode ignore this)
front.h2.name=webasefront
front.org=fisco# WeBASE-Web service port 
web.port=5000
# enable WeBASE-Web overview pages for mobile phone(docker mode not support h5 yet)
# (0: disable, 1: enable)
web.h5.enable=1# WeBASE-Node-Manager service port
mgr.port=5001# WeBASE-Front service port
front.port=5002# WeBASE-Sign service port
sign.port=5004# Node listening IP
node.listenIp=127.0.0.1
# Node p2p service port
node.p2pPort=30300
# Node channel service port
node.channelPort=20200
# Node rpc service port
node.rpcPort=8545# Encrypt type (0: standard, 1: guomi)
encrypt.type=0
# ssl encrypt type (0: standard ssl, 1: guomi ssl)
# only guomi type support guomi ssl
encrypt.sslType=0# Use existing chain or not (yes/no)
if.exist.fisco=yes### if build new chain, [if.exist.fisco=no]
# Configuration required when building a new chain 
# Fisco-bcos version
fisco.version=2.8.0
# Number of building nodes (default value: 2)
node.counts=nodeCounts### if using exited chain, [if.exist.fisco=yes]
# The path of the existing chain, the path of the start_all.sh script
# Under the path, there should be a 'sdk' directory where the SDK certificates (ca.crt, sdk.crt, node.key and gm directory(gm ssl)) are stored
fisco.dir=/home/fisco/workspace/nodes/127.0.0.1
# Node directory in [fisco.dir] for WeBASE-Front to connect 
# example: 'node.dir=node0' would auto change to '/data/app/nodes/127.0.0.1/node0'
# Under the path, there is a conf directory where node certificates (ca.crt, node.crt and node.key) are stored
node.dir=node0

这里我修改了

1、数据库账号密码

 2、链条路径

 因为我有自己的链,所以我就使用了我搭建的链目录,目录下一定要存在SDK文件夹一般都是ip文件夹

部署并启动所有服务

python3 deploy.py installAll

检查所有的进程服务

ps -ef | grep nodeps -ef | grep webase.front ps -ef  | grep webase.node.mgrps -ef | grep nginx ps -ef  | grep webase.sign

 

 访问浏览器就可以啦

http://{deployIP}:{webPort}
示例:http://localhost:5000

 

http://www.lryc.cn/news/56006.html

相关文章:

  • openEuler Linux 部署 HadoopHA
  • React-Hooks----useEffect()
  • JavaWeb基础-汇总
  • Niuke:JZ36.二叉树与双向链表
  • javaScript---读懂promise、async/await
  • 【Linux】TCP编程流程
  • SuperMap iDesktop 下载安装,生成本地瓦片,以及发布本地瓦片服务
  • 【ONE·Data || 常见排序说明】
  • 本节作业之跟随鼠标的天使、模拟京东按键输入内容、模拟京东快递单号查询
  • ChatGPT 被大面积封号,到底发生什么了?
  • 教你精通JavaSE语法之第十一章、认识异常
  • display、visibility、opacity隐藏元素的区别
  • Linux Shell 实现一键部署tomcat10+java13
  • 软硬皆施,WMS仓库管理系统+PDA,实现效率狂飙
  • DJ3-2 传输层(第二节课)
  • FrIf-FrIf功能模块概述和与底层驱动的交互
  • 【LeetCode】前 K 个高频元素(堆)
  • Java ---多态
  • 13个程序员常用开发工具用途推荐整理
  • TCP分包和粘包
  • 手撕深度学习中的优化器
  • 英文打字小游戏
  • PCB生产工艺流程三:生产PCB的内层线路有哪7步
  • 算法竞赛进阶指南0x61 最短路
  • [学习篇] Autoreleasepool
  • 晶体基本知识
  • 免费CRM如何进行选择?
  • 关于金融类iOS套壳上架,我帮你总结了这些经验
  • 4年功能测试月薪9.5K,3个月时间成功进阶自动化,跳槽涨薪6k后我的路还很长...
  • python url解码详解