diff --git a/05b2e78f8b1f761f882f92c937f22ed.png b/05b2e78f8b1f761f882f92c937f22ed.png new file mode 100644 index 0000000..ed1d69e Binary files /dev/null and b/05b2e78f8b1f761f882f92c937f22ed.png differ diff --git a/Pasted image 20250227171647.png b/Pasted image 20250227171647.png new file mode 100644 index 0000000..269a92f Binary files /dev/null and b/Pasted image 20250227171647.png differ diff --git a/a4e07351e40235a3573a09da39a6c61.jpg b/a4e07351e40235a3573a09da39a6c61.jpg new file mode 100644 index 0000000..cb68bb7 Binary files /dev/null and b/a4e07351e40235a3573a09da39a6c61.jpg differ diff --git a/work常用/中间件/seatunnel/MySql-CDC.md b/work常用/中间件/seatunnel/MySql-CDC.md new file mode 100644 index 0000000..b5449ba --- /dev/null +++ b/work常用/中间件/seatunnel/MySql-CDC.md @@ -0,0 +1,32 @@ +### 一、环境准备 +#### 1.mysql 需开启binlog及gtid,seatunnel-cdc会伪装成mysql从库实现数据同步 +mysql 8 版本参考配置如下: +```text +[mysqld] +# binlog +server-id = 1 +log-bin = mysql-bin +expire_logs_days = 7 +binlog_format = row +max_binlog_size = 100m +# enable gtid mode +gtid_mode = on +enforce_gtid_consistency = on +``` + +执行SQL验证是否开启binlog +```sql +show variables where variable_name in ('log_bin', 'binlog_format', 'binlog_row_image', 'gtid_mode', 'enforce_gtid_consistency'); +``` +![[Pasted image 20250227171647.png]] +#### 2.开启gtid + +按顺序执行以下语句 +```sql +set global gtid_mode = OFF_PERMISSIVE; +set global gtid_mode = ON_PERMISSIVE; +set global enforce_gtid_consistency = ON; +set global gtid_mode=ON; +``` + +### 二、source配置 diff --git a/work常用/安装/mysql 8.4安装.md b/work常用/安装/mysql 8.4安装.md new file mode 100644 index 0000000..2387cf8 --- /dev/null +++ b/work常用/安装/mysql 8.4安装.md @@ -0,0 +1 @@ +[Debian 12 安装&卸载 MySQL 8.4 教程 - 雨中遐想 - 博客园](https://www.cnblogs.com/zjw-blog/p/18731166) \ No newline at end of file diff --git a/本机环境/开发环境.md b/本机环境/开发环境.md index 66487aa..913e6f4 100644 --- a/本机环境/开发环境.md +++ b/本机环境/开发环境.md @@ -42,7 +42,7 @@ docker run --name minio -p 9000:9000 -p 9999:9999 -d --restart=always -e "MINIO_ + mysql8 root/root@123 ```shell -docker pull mysql +docker pull mysql:8.0.41 //创建存储 D:\mysql\data D:\mysql\conf //在conf下创建my.cnf文件 @@ -50,9 +50,6 @@ D:\mysql\data D:\mysql\conf #socket = /d/mysql/mysqld.sock default-character-set = utf8mb4 [mysqld] -#pid-file = /var/run/mysqld/mysqld.pid -#socket = /var/run/mysqld/mysqld.sock -#datadir = /var/lib/mysql #socket = /d/mysql/mysqld.sock #pid-file = /d/mysql/mysqld.pid datadir = /d/mysql/data @@ -62,10 +59,18 @@ secure-file-priv= NULL # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 # Custom config should go here +# 开启binlog +server-id = 223344 +log_bin = mysql-bin +expire_logs_days = 10 +binlog_format = row +binlog_row_image = FULL +gtid_mode = on +enforce_gtid_consistency = on !includedir /etc/mysql/conf.d/ //创建容器 指定密码为root@123 -docker run --restart=unless-stopped -d --name mysql8 -v /d/mysql/conf/my.cnf:/etc/mysql/my.cnf -v /d/mysql/data:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root@123 mysql:latest +docker run --restart=unless-stopped -d --name mysql8 -v /g/data/mysql/conf/my.cnf:/etc/mysql/my.cnf -v /g/data/mysql/data:/var/lib/mysql -v /g/data/mysql/log:/var/log/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root@123 mysql:8.0.41 ``` + rabbitmq http://localhost:15672 admin/admin123 diff --git a/问题排查/踩坑记录/docker 映射后无法远程访问服务.md b/问题排查/踩坑记录/docker 映射后无法远程访问服务.md new file mode 100644 index 0000000..2df8d7b --- /dev/null +++ b/问题排查/踩坑记录/docker 映射后无法远程访问服务.md @@ -0,0 +1,12 @@ +排查过程: +1.检查防火墙和端口出入规则 +firewalld和iptables +2.检查IP转发是否开启 +出于安全考虑,Linux系统默认是禁止数据包转发的。所谓转发即当主机拥有多于一块的网卡时,其中一块收到数据包,根据数据包的目的ip地址将数据包发往本机另一块网卡,该网卡根据路由表继续发送数据包。这通常是路由器所要实现的功能。 +要让Linux系统具有路由转发功能,需要配置一个Linux的内核参数`net.ipv4.ip_forward`。这个参数指定了Linux系统当前对路由转发功能的支持情况;其值为0时表示禁止进行IP转发;如果是1,则说明IP转发功能已经打开。 +执行以下命令,如果为0说明没有开启 +```shell +sysctl net.ipv4.ip_forward +``` +![[05b2e78f8b1f761f882f92c937f22ed.png]] + diff --git a/项目/盛视科技/河口海关AR.md b/项目/盛视科技/河口海关AR.md index 3805199..3037447 100644 --- a/项目/盛视科技/河口海关AR.md +++ b/项目/盛视科技/河口海关AR.md @@ -1,5 +1,5 @@ 海关侧NTP 10.85.92.114 - +![[a4e07351e40235a3573a09da39a6c61.jpg]] ## 2024-09-24 1. 融合指挥告警过滤,可以选择推送哪些告警以及告警等级(客户目的就是为了不要触发的太频繁) 2. 车辆拥堵最好能在地图上显示拥堵区域以及用颜色显示拥堵程度(待讨论)