上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: binlog binlog虽然提供了数据变化的日志记录,但文件本身增长很快,可以定期进行清理。 删除指定日期之前的binlog PURGE MASTER LOGS BEFORE '2024-10-01 18:00:30'; 阅读全文
posted @ 2024-11-18 09:13 漠孤烟 阅读(9) 评论(0) 推荐(0) 编辑
摘要: Java24发布了内存优化提案,该提案是将对象头压缩到64位,比先前的96或128节省了33%或50%内存,能有效改善Java占用内存大的问题。 目前还是体验型参数,需要手工开启: java -XX:+UnlockExperimentalVMOptions -XX:+UseCompactObject 阅读全文
posted @ 2024-11-15 09:51 漠孤烟 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 1、查看当前目录下的文件大小(不含子目录) du -lh 2、查看指定文件目录大小总和(含子目录) du -slh /path/to/directory 3、查看当前文件目录大小总和(含子目录) du -slh 4、查看所有层级文件大小 du -lh -d 3 3表示目录层级数,显示本目录、次级目录 阅读全文
posted @ 2024-11-13 09:02 漠孤烟 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 下载 https://mariadb.org/download/?t=mariadb&o=true&p=mariadb&r=11.4.4&os=windows&cpu=x86_64&pkg=zip&mirror=xtom_hk 解压 解压到指定位置(建议放在SSD所在盘符),如: D:\mariad 阅读全文
posted @ 2024-11-12 11:15 漠孤烟 阅读(193) 评论(0) 推荐(0) 编辑
摘要: mysql 8.0.x 服务器调优 服务器主要参数 以8核16G为优化参考。 参数 默认值 建议值 备注 innodb_read_io_threads 4 8 全局只读参数 innodb_buffer_pool_size 134217728 2147483648 全局参数。缓存innodb表的索引, 阅读全文
posted @ 2024-10-16 16:27 漠孤烟 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 将日志文件里的含有关键词的行提取到文件 filter.log cat app.log | grep -v '关键词' > filter.log 如果想精确字符串匹配不用正则,则: cat app.log | grep -F '关键词' > filter.log 阅读全文
posted @ 2024-10-15 15:56 漠孤烟 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 报错: SQL 错误 [1267] [HY000]: Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_0900_ai_ci,IMPLICIT) for operation '=' 解决方式 ALTER DATA 阅读全文
posted @ 2024-09-27 09:16 漠孤烟 阅读(106) 评论(0) 推荐(0) 编辑
摘要: https://dev.mysql.com/doc/refman/8.4/en/innodb-parameters.html#sysvar_innodb_flush_log_at_trx_commit 阅读全文
posted @ 2024-09-13 11:37 漠孤烟 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 下载 https://forge.rust-lang.org/infra/archive-stable-version-installers.html Windows: x86_64-pc-windows-gnu windows配置path RUST_HOME=D:\your_dir\rust-1. 阅读全文
posted @ 2024-09-08 16:52 漠孤烟 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 查看物理核心数 less /proc/cpuinfo | grep 'cpu cores' | uniq 查看逻辑核心数 lscpu | grep "^CPU(s):" | head -n 1 阅读全文
posted @ 2024-09-06 08:25 漠孤烟 阅读(15) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页
点击右上角即可分享
微信分享提示