环境准备
sudo apt update
sudo apt upgrade -y
JDK安装
sudo apt install openjdk-11-jdk
变量配置(i添加 :wq 保存退出 :q!不保存退出)
sudo update-alternatives --config java
vi ~/.bashrc
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
source ~/.bashrc
echo $JAVA_HOME
MYSQL
sudo apt install -y mysql-server
sudo systemctl start mysql
sudo systemctl enable mysql
sudo mysql -u root -p
CREATE DATABASE webase;
CREATE USER 'webase'@'localhost' IDENTIFIED BY 'webase123';
GRANT ALL PRIVILEGES ON webase.* TO 'webase'@'localhost';
CREATE USER 'webase'@'%' IDENTIFIED BY 'webase123';
GRANT ALL PRIVILEGES ON webase.* TO 'webase'@'%';
FLUSH PRIVILEGES;
EXIT;
PyMySQL
pip3 install PyMySQL
sudo apt-get install -y python3-pip
获取包部署
wget https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/WeBASE/releases/download/v1.5.5/webase-deploy.zip
unzip webase-deploy.zip
cd webase-deploy
修改配置文件信息
vi common.properties
.验证安装
-
访问 Webase-Web 界面:
在浏览器中打开
http://127.0.0.1:5002
。 -
登录 Webase-Web:
使用默认账户(通常是
admin/admin
)登录。 -
添加节点:
通过 Webase-Web 界面将 FISCO BCOS 节点添加到 Webase 中进行管理
- 防火墙设置:如果在云服务器上部署,请确保打开必要的端口,例如 5002(Webase-Web),3306(MySQL),以及 FISCO BCOS 节点所需的端口。
- 配置调整:根据实际需求,调整
config.toml
和各个服务的配置文件,以适应具体的部署环境和需求。
0.备份现有的源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo nano /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
无法提出码
在URL最后面添加 &useSSL=false