12 2019 档案

摘要:一、现象 最近发现Mysql服务器磁盘IO一直很高 发现3307和3306实例占用IO最高,进入3307实例,查看sync_binlog变量 发现设置的是1,也就是说每次事务提交都会将binlog的缓存写入磁盘,严重影响磁盘效率,将变量设置为1000, 再查看innodb_flush_log_at_ 阅读全文
posted @ 2019-12-26 15:47 RoyFans 阅读(2042) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash # 删除元数据 rm -rf /var/lib/rabbitmq/mnesia # 重启rabbitmq rabbitmqctl stop systemctl restart rabbitmq-server # 添加用户 rabbitmqctl add_user admin 123456 rabbitmqctl set_user_tags admin administrat 阅读全文
posted @ 2019-12-19 14:26 RoyFans 阅读(1594) 评论(0) 推荐(0) 编辑
摘要:问题描述 解决办法 Apache 阅读全文
posted @ 2019-12-18 17:41 RoyFans 阅读(3380) 评论(0) 推荐(1) 编辑
摘要:1.先用ps查询进程号 ps -aux|grep 进程名字 2.查看更详细的内存占比 cat /proc/3664/status 返回结果:(其中VmRSS为进程所占用的内存) 阅读全文
posted @ 2019-12-12 20:11 RoyFans 阅读(8802) 评论(0) 推荐(0) 编辑
摘要:shell 脚本 用 crontab 设定定时任务 查看 crontab 日志 阅读全文
posted @ 2019-12-10 18:41 RoyFans 阅读(669) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash #1.查看物理cpu个数 physical=`cat /proc/cpuinfo |grep 'physical id'|sort -u|wc -l` echo 物理cpu个数: "$physical" #2.查看核心数量 core=`grep 'core id' /proc/cpuinfo | sort -u | wc -l` echo 核心数: "$core" #3.查 阅读全文
posted @ 2019-12-09 15:14 RoyFans 阅读(457) 评论(0) 推荐(0) 编辑
摘要:rabbitmqctl start_app启动没有这个问题 阅读全文
posted @ 2019-12-02 15:29 RoyFans 阅读(3123) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示