sql审核平台-Yearning最新版安装

最新版移除了inception的第三方插件,部署更为简单

安装依赖文件,最新版是用go写的所以go是需要安装的

$yum -y install go

1、安装平台所需要的数据库服务(官方建议版本高于或者等于5.7)

$wget http://repo.mysql.com/mysql57-community-release-el7-10.noarch.rpm
$rpm -Uvh mysql57-community-release-el7-10.noarch.rpm
$yum install -y mysql-community-server
$systemctl restart mysqld.service
$grep 'temporary password' /var/log/mysqld.log
$mysql -hlocalhost -uroot -p'B>(wSnJe?5w='
mysql> set global validate_password_policy=0;
mysql> set global validate_password_length=1;
mysql> alter user 'root'@'localhost' identified by '123456';
mysql> grant all privileges on *.* to 'root'@'%'identified by '123456';
mysql> CREATE DATABASE IF NOT EXISTS Yearning DEFAULT CHARSET UTF8mb4;

2、下载Yearning源码

wget  https://github.com/cookieY/Yearning/releases/download/v2.1.9/Yearning-2.1.9.linux-amd64.zip
unzip Yearning-2.1.9.linux-amd64.zip
mv Yearning-go  /soft/
cd /soft/Yearning-go
$cat conf.toml
[Mysql]
Db = "Yearning"
Host = "172.19.220.215"
Port = "3306"
Password = "123456"
User = "root"
[General]
SecretKey = "DoQR1sypFGk3m29Z"

初始化数据库

$./Yearning -m

接着启动服务即可

$./Yearning -s -b "0.0.0.0" -p "8000"

默认密码:admin/Yearning_admin 登陆之后在控制台修改

登陆即可

sql审核平台-Yearning最新版安装_第1张图片

 

你可能感兴趣的:(sql,数据库,database,yearning)