摘要: 1.创建文件夹 mkdir -p /myproject/my-spring-cloud 2.修改配置文件中的mysql地址为mysql镜像别名 localhost-->mysql_conn 3.springboot项目打包 4.复制cloud-user-server-1.0-SNAPSHOT.jar 阅读全文
posted @ 2022-09-09 17:58 fycn01 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 1.拉取镜像 docker pull ibex/debian-mysql-server-5.7:5.7.26 2.创建宿主配置文件目录和数据目录 mkdir -p /Users/liyabin/docker/mysql/conf mkdir -p /Users/liyabin/docker/mysq 阅读全文
posted @ 2022-09-09 00:47 fycn01 阅读(1195) 评论(0) 推荐(1) 编辑
摘要: 1.monitor:方法执行监控 monitor -c 5 com.lyb.web.mySpringBoot.demo.RedefineTestSimple testSimple 2.watch:函数执行数据观测 参数名称参数说明 class-pattern 类名表达式匹配 method-patte 阅读全文
posted @ 2022-08-15 01:47 fycn01 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1.sc:查看 JVM 已加载的类信息 sc com.lyb.web.mySpringBoot.demo.RedefineTestSimple sc com.lyb.web.mySpringBoot.demo.RedefineTestSimple -d 2.sm:查看已加载类的方法信息 sm com 阅读全文
posted @ 2022-08-15 01:47 fycn01 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1. jad:反编译指定已加载类的源码 jad com.lyb.web.mySpringBoot.thread.ThreadAppendData 2. watch:函数执行数据观测 watch org.apache.lucene.util.RamUsageEstimator sizeOf retur 阅读全文
posted @ 2022-08-13 19:28 fycn01 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 1.下载arthas-boot.jar curl -O https://alibaba.github.io/arthas/arthas-boot.jar 2.启动arthas-boot.jar java -jar arthas-boot.jar 3.退出arthas-boot.jar quit 4. 阅读全文
posted @ 2022-08-13 01:27 fycn01 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1.启动Arthas cd /Users/liyabin/.arthas/lib/3.6.2/arthas /Library/Java/JavaVirtualMachines/jdk1.8.0_333.jdk/Contents/Home/bin/java -jar arthas-boot.jar 注 阅读全文
posted @ 2022-08-13 01:27 fycn01 阅读(727) 评论(0) 推荐(0) 编辑
摘要: 1.数据库相关 数据库内核月报 2015-04-01:MySQL · 引擎特性 · InnoDB undo log 漫游 阅读全文
posted @ 2022-03-30 10:57 fycn01 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 1.mysql 导出数据库脚本: mysqldump -h10.10.10.10 -uusername -ppassword -d dataBase > /tmp/dataBase.sql 2.mysql 导入数据库脚本: mysql -h10.10.10.10 -uusername -ppassw 阅读全文
posted @ 2021-06-03 18:02 fycn01 阅读(29) 评论(0) 推荐(0) 编辑
摘要: top命令,P:CPU排序,M:内存排序 查询项目进程ID ps -ef | grep target [lhadmin@BJTVMYTEAM-2 logs]$ jstack 13359 13359: well-known file /tmp/.java_pid13359 is not secure: 阅读全文
posted @ 2021-03-29 19:13 fycn01 阅读(1821) 评论(0) 推荐(0) 编辑
摘要: Linux 内核有个机制叫OOM killer(Out Of Memory killer),该机制会监控那些占用内存过大,尤其是瞬间占用内存很快的进程,然后防止内存耗尽而自动把该进程杀掉。内核检测到系统内存不足、挑选并杀掉某个进程的过程可以参考内核源代码linux/mm/oom_kill.c,当系统 阅读全文
posted @ 2021-03-29 14:24 fycn01 阅读(11431) 评论(0) 推荐(1) 编辑
摘要: 第一步:下载redis安装包 wget http://download.redis.io/releases/redis-4.0.9.tar.gz 想下载哪个版本可以复制上面链接删除redis-*部分内容,可以查看到所有redis版本的安装包 第二步:解压安装包 tar -zxvf redis-4.0 阅读全文
posted @ 2020-09-17 11:19 fycn01 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 问题: 合并代码时候容易出现冲突 解决方法: 通过同一文件对比进行代码合并 1.代码块只有自己修改:合并以自己代码为准 2.代码块非自己修改:合并以对方代码为准 3.代码块中既有自己修改又有别人修改:和对应的提交人协商后解决 避免或减少冲突方案: 1.命名规范: hotfix_xxx:hotfix_ 阅读全文
posted @ 2020-09-08 13:49 fycn01 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 参考地址:https://github.com/alibaba/druid/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98https://github.com/alibaba/druid/wiki/DruidDataSource%E9%85%8D%E7%BD%AE 阅读全文
posted @ 2020-08-27 14:39 fycn01 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 查询是否锁表 show OPEN TABLES where In_use > 0; 查询进程 show processlist 查询到相对应的进程 然后 kill id 查看正在锁的事务 innodb_trx表:trx_id:事务ID。trx_state:事务状态,有以下几种状态:RUNNING、L 阅读全文
posted @ 2020-08-18 11:41 fycn01 阅读(1477) 评论(0) 推荐(0) 编辑
摘要: 1.mysql 导出数据库脚本: mysqldump -h10.10.10.10 -uusername -ppassword -d dataBase > /tmp/dataBase.sql 2.mysql 导入数据库脚本: mysql -h10.10.10.10 -uusername -ppassw 阅读全文
posted @ 2020-07-03 18:19 fycn01 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * https请求用 3 * 4 * @param ip 5 * @param port 6 * @return 7 */ 8 public static CloseableHttpClient getHttpsClient(String ip, int port) { 9 Clos 阅读全文
posted @ 2020-04-07 16:24 fycn01 阅读(450) 评论(0) 推荐(0) 编辑
摘要: POM文件配置 1 <dependency> 2 <groupId>org.mockito</groupId> 3 <artifactId>mockito-all</artifactId> 4 <version>2.0.2-beta</version> 5 <scope>test</scope> 6 阅读全文
posted @ 2019-12-13 14:59 fycn01 阅读(1008) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/zzzgd_666/article/details/88858181 阅读全文
posted @ 2019-09-09 10:00 fycn01 阅读(342) 评论(0) 推荐(0) 编辑
摘要: import com.fasterxml.jackson.databind.DeserializationFeature;import com.fasterxml.jackson.databind.ObjectMapper;import com.fasterxml.jackson.databind. 阅读全文
posted @ 2019-06-26 16:27 fycn01 阅读(193) 评论(0) 推荐(0) 编辑
摘要: [client]port=3306# 通过socket文件来快速的登录mysql对应不同端口下的实例socket=/mysql/my3306/mysql.sock [mysql]#为mysqld程序指定一个存放进程ID的文件(仅适用于UNIX/Linux系统); Init-V脚本需要使用这个文件里的 阅读全文
posted @ 2019-06-26 16:19 fycn01 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 序号 快捷键 功能1 Alt+enter 自动导包2 Ctrl+N 查找类名3 Shift+Ctrl+F 全局文件中查找4 Shift+Ctrl+R 全局文件中替换5 Ctrl+R 当前文件中替换6 Ctrl+Alt+F 代码格式化7 Ctrl+Shift+U 选中的单词大小写转换8 Ctrl+Al 阅读全文
posted @ 2019-06-10 16:24 fycn01 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1.查看宿主主机VMnet8的ipv4地址地址和子网掩码 如:本机的VMnet8的ipv4地址为:ipv4—192.168.10.1,子网掩码为255.255.255.0 2.查看虚拟机VMnet8配置 (这里我选择NAT的联网方式),备注:在这种联网方式下,宿主主机相当于一台路由器,给虚拟机分配I 阅读全文
posted @ 2019-06-10 15:52 fycn01 阅读(740) 评论(0) 推荐(0) 编辑
摘要: CentOS-6.10-x86_64-bin-DVD1.iso 安装包下载地址 https://opsx.alibaba.com/mirror 1.创建新的虚拟机 2.选择“CentOS-6.10-x86_64-bin-DVD1.iso”安装包 3.选择安装的操作系统类型 4.设置虚拟机名称和存放宿 阅读全文
posted @ 2019-06-10 15:12 fycn01 阅读(1097) 评论(0) 推荐(0) 编辑
摘要: 第一部分:环境搭建准备 1. 安装上传下载工具 [root@CentOS61010020 ~]# yum -y install lrzsz 2.上传安装包到“/usr/local”目录下 [root@CentOS61010020 ~]# cd /usr/local/ [root@CentOS6101 阅读全文
posted @ 2019-04-01 18:26 fycn01 阅读(1104) 评论(0) 推荐(0) 编辑
摘要: hibernate-validator+SpringMVC 简介:简单说,就是对Entity进行校验。 1、导包,没有很严谨的对应关系,所以我用了比较新的版本,支持更多的注解。 <dependency> <groupId>org.hibernate.validator</groupId> <arti 阅读全文
posted @ 2018-12-27 16:44 fycn01 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 1 阅读全文
posted @ 2018-11-12 19:28 fycn01 阅读(887) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-04-10 09:16 fycn01 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-08 11:07 fycn01 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-08 11:06 fycn01 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-08 11:06 fycn01 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-08 11:05 fycn01 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-08 11:04 fycn01 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-08 11:03 fycn01 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-08 11:02 fycn01 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-08 11:01 fycn01 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-08 11:00 fycn01 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-08 10:59 fycn01 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-08 10:58 fycn01 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-08 10:57 fycn01 阅读(237) 评论(0) 推荐(0) 编辑