摘要: canal 使用 简介 canal [kə'næl],译意为水道/管道/沟渠,主要用途是基于 MySQL 数据库增量日志解析,提供增量数据订阅和消费 基于日志增量订阅和消费的业务包括 数据库镜像 数据库实时备份 索引构建和实时维护(拆分异构索引、倒排索引等) 业务 cache 刷新 带业务逻辑的增量 阅读全文
posted @ 2022-10-05 21:42 mantishell 阅读(1678) 评论(0) 推荐(1) 编辑
摘要: docker 版本:Docker version 20.10.14, build a224086 使用win10系统 查看版本命令(docker -v) 实现一主二从 准备 1、拉取镜像mysql-8.0 c:\>docker pull mysql:8.0 查看镜像 c:\>docker image 阅读全文
posted @ 2022-07-17 09:50 mantishell 阅读(771) 评论(0) 推荐(0) 编辑
摘要: 假设我们发送消息的方式是配置在文件中或库中,发送前根据配置来决定如何发送消息。 先定义一个消息抽象类 /** * 消息抽象类 */ public abstract class BaseMessage { private String content; public abstract void sen 阅读全文
posted @ 2022-06-08 18:14 mantishell 阅读(35) 评论(0) 推荐(0) 编辑
摘要: redis-cli -h server的ip -p server的端口 -a server的密码 monitor windows下的脚本,保存为redis-monitor.bat,然后运行即可 @echo off title redis-monitor cd redis-cli工具所在的路径 red 阅读全文
posted @ 2022-05-17 18:02 mantishell 阅读(347) 评论(0) 推荐(0) 编辑
摘要: # mysql -uroot -p #进入数据库 > use mysql;#进入数据库 > select host, user, authentication_string, plugin from user;#查看用户信息 > GRANT ALL ON *.* TO 'root'@'%';#授权r 阅读全文
posted @ 2022-05-17 18:00 mantishell 阅读(418) 评论(0) 推荐(0) 编辑
摘要: nohup java -jar xxx.jar > Log.log & ps -aux | grep "xxx.jar" kill -9 进程号PID 1、从服务器上下载文件 scp username@servername:/path/filename /var/www/local_dir(本地目录 阅读全文
posted @ 2022-03-21 20:29 mantishell 阅读(62) 评论(0) 推荐(0) 编辑
摘要: nginx -s stop -c /etc/nginx/nginx.conf nginx -c /etc/nginx/nginx.conf netstat -luntp | grep 443 生成CA证书 openssl version:查看是否已经安装openssl nginx -V: 查看是否编 阅读全文
posted @ 2021-06-08 22:17 mantishell 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 封装layer提示框 (function($){ $.extend({ modal: { // 显示图标 icon: function(type) { var icon = ""; if (type == modal_status.WARNING) { icon = 0; } else if (ty 阅读全文
posted @ 2021-04-22 21:24 mantishell 阅读(969) 评论(0) 推荐(0) 编辑
摘要: Java多线程编程 Thread类实现多线程 class MyThread extends Thread{ private String title; public MyThread(String title){ this.title = title; } @Override public void 阅读全文
posted @ 2021-04-10 15:40 mantishell 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 在IDEA中对Spring Boot项目进行远程debug调试 ideau版本:2019.1 tomcat版本:9.1.41,配置ip:192.168.2.234,端口:8080 打包方式:war 一、使用命令运行tomcat中的网站 1、在ideau中配置远程调试参数 这里的端口填写调试端口。 将 阅读全文
posted @ 2020-12-24 12:53 mantishell 阅读(540) 评论(0) 推荐(0) 编辑