文档详情

SQL 高性能审查平台Archery的搭建.pdf

发布:2024-04-23约7.41千字共9页下载文档
文本预览下载声明

SQL审查平台Archery

背景

1.进⼀步提⾼数据sql执⾏过程中的安全性及规范性

2.sql执⾏的审计要求

3.对线上数据库操作的流程化管理

安装部署

本次部署为⼿动拆分组件单个部署旨在更好的理解本平台的组件调⽤关系⽅便故障排查

相关依赖及已安装版本

python3.9、go1.19、goInception、archery、mysql5.7+、redis、nginx、supervisor

python3.9环境部署

1#安装依赖

2yuminstalllibffi-develwgetgmakezlib-developensslopenssl-develnurses-

3wget/ftp/python/3.9.10/Python-3.9.10.tar.xz

4tar-xvJfPython-3.9.10.tar.xz

5

6#编译

7dPython-3.9.10

8./onfigureprefix=/usr/loal/python3

9makemakeinstall

10

11#环境变量主配置⽂件增加环境信息也可在profile.d下新增⼦环境配置⽂件

12vim/et/profile

13exportPATH=$PATH:/usr/loal/python3/bin/

14

15#加载环境变量

16soure/et/profile

17

18#安装virtualenv

19pip3installvirtualenv-ihttps://mirrors.ust.edu.n/pypi/web/simple/

20

21

创建虚拟环境

1#创建虚拟环境

2mkdir-p/fhy/server/

3d/fhy/server/

4virtualenvvenv4arhery--python=python3

5

6#切换python运⾏环境到虚拟环境

7sourevenv4arhery/bin/ativate

下载安装archery

1wgethttps://github.om/hhyo/arhery/arhive/v1.8.5.tar.gz

2tar-xzvfv1.8.5.tar.gz

3

4#安装系统依赖

5yum-yinstallgg-++python-develmysql-developenldap-develunixODBC-deve

6

7#安装依赖库

8darhery-1.8.0

9pip3install-rrequirements.txt-ihttps://mirrors.ust.edu.n/pypi/web/simple/

安装Inception(MySQL审核、查询校验和数据脱敏)

项⽬地址:/hanchuanchuan/goInception

准备MySQL、Redis实例

MySQL推荐版本=5.7

Redis提供任务队列和缓存

Mysql安装

1wgethttps://dev.mysql.om/get/Downloads/MySQL-5.7/mysql-5.7.22-linux-glib2.12-

2groupaddmysql

3useradd-r-gmysqlmysql

4tarxfmysql-5.7.22-linux-glib2.12-x86_64.tar.gz

5mvmysql-5.7.22-linux-glib2.12-x86_64mysql-5.7

6hown-Rmysql.mysqlmysql-5.7

7dmysql-5.7

8mkdir/data/mysql

9hown-Rmysql.mysql/data/mysql/

10./mysqld

显示全部
相似文档