新之助meow

Kratos
专注于用户阅读体验的响应式博客主题
未分类

dell 服务器诊断日志 tsr 获取步骤

通过IDrac来收集 在浏览器输入192.168.0.120 用户名root密码默认calvin登录 如果ip无法登录,有可能局域网中有很多机器都默认了120的ip,可以在bios里或者openmanage server administrator 的web界面http://ip:1131登录 修改idrac的管理ip地址,选 系统-主系统机箱-远程访问 在右侧页面选择:配置-LAN NIC配置 中 启用NIC 主要网络选择 LOM1即网卡1 IPv4地址中 修改一个不冲突的地址,比如 192.168.0.65 应…

2017年9月24日 0条评论 592点热度 0人点赞 tjccn_wx@hotmail.com 阅读全文
未分类

关于mysql 支持毫秒时间和全局查询日志记录毫秒时间

mysql 5.6.4开始可以通过 定义datetime(6) timestamp(6) 列,这种方式来打开时间对毫秒的支持 使用函数 CURRENT_TIMESTAMP(6) now(6) 来生成带毫秒的时间 参考 Why doesn't MySQL support millisecond / microsecond precision? Date and Time Functions mysql 5.6的全局日志记录的时间没有毫秒,无法详细分析sql的执行时间。mysql 5.7就有毫秒了 1尝试修改表结构将时…

2017年9月21日 0条评论 557点热度 0人点赞 tjccn_wx@hotmail.com 阅读全文
未分类

perl 为标准输出添加时间

suse 11 sp3 默认 perl 5.10 不支持新的方法,只能用比较原始的 use Time::HiRes qw(gettimeofday); $one = gettimeofday; print STDOUT "one = $one\n"; ($sec,$milli) = gettimeofday; print STDOUT "sec = $sec, milli = $milli\n"; $milli2 = sprintf("%.*s", 3, $milli); print STDOUT "sec = $…

2017年9月21日 0条评论 482点热度 0人点赞 tjccn_wx@hotmail.com 阅读全文
未分类

mysql 的 max_binlog_cache_size 和 binlog_cache_size

事务大小小于binlog_cache_size 使用内存 在binlog_cache_size 和 max_binlog_cache_size 之间会使用磁盘, 超过 max_binlog_cache_size 事务就报错了 会报 Multi-statement transaction required more than‘max_binlog_cache_size’ bytes of storage mysql 5.7限制 max_binlog_cache_size 为4G 因此过大的事务是不能打开binlog的…

2017年9月21日 0条评论 1319点热度 0人点赞 tjccn_wx@hotmail.com 阅读全文
未分类

mysql 的 INSERT INTO ON DUPLICATE KEY UPDATE 和 replace into 的区别

注意慎用replace into,两个的主要区别如下 replace into INSERT INTO ON DUPLICATE KEY UPDATE 遇到更新时是先删掉原来的在插入新的 遇到更新时直接update 由于先删除旧的,如果原来有些列有旧数据或者没有提供更新的列,会丢数据 典型的update数据,只影响update的列,别的没有影响 由于先删旧的性能慢 性能快 参考: MySQL "replace into" 的坑 Mysql replace 与 insert on duplicate效率分析 INSE…

2017年9月21日 0条评论 597点热度 0人点赞 tjccn_wx@hotmail.com 阅读全文
未分类

SLES 11 SP3 防火墙停止&禁用命令

停止防火墙 rcSuSEfirewall2 stop 禁用防火墙自动运行 chkconfig SuSEfirewall2_setup off chkconfig SuSEfirewall2_init off 要先停setup的,否则停init的会报错 参考 http://www.wo81.com/tec/os/suse/2014-04-21/129.html 转载 SLES 11 SP3 系统安装后,防火墙一般是启动的,它有两个服务:SuSEfirewall2_setup,SuSEfirewall2_init,但是…

2017年9月21日 0条评论 455点热度 0人点赞 tjccn_wx@hotmail.com 阅读全文
未分类

tar 只打包所有目录结构

find . -type d -print0 | tar cf dirstructure.tar --null --files-from - --no-recursion 参考stackoverflow的回答 You can use find to get the directories and then tar them: find .. -type d -print0 | xargs -0 tar cf dirstructure.tar --no-recursion If you have more than …

2017年9月21日 0条评论 570点热度 0人点赞 tjccn_wx@hotmail.com 阅读全文
未分类

openvpnas 虚拟机安装设置

官方页面和下载 官方的虚拟机发布和配置页面 虚拟机下载地址 虚拟机文件可以直接用vmware workstation打开,报错就选忽略 基本配置 虚拟机网卡默认是dhcp的,一般需要改成静态ip,把dhcp改成 static 其他参考如下 vi /etc/network/interfaces allow-hotplug eth0 iface eth0 inet static address 192.168.0.100 netmask 255.255.255.0 gateway 192.168.0.1 dns-nam…

2017年9月4日 0条评论 534点热度 0人点赞 tjccn_wx@hotmail.com 阅读全文
未分类

tar 远程备份

#传输到远程: tar czf - file| ssh server "tar zxf -" #压缩到远程: tar czf - file| ssh server "cat > file.tar.gz" #解压到远程: ssh server "tar zxf -" < file.tar.gz #解压到本地: ssh server "cat file.tar.gz" | tar zxf - 参考 http://www.cszhi.com/20120513/tar-ssh.html http://www.c…

2017年9月3日 0条评论 487点热度 0人点赞 tjccn_wx@hotmail.com 阅读全文

近期文章

  • 世界,您好!
  • mysql 迁移到sqlserver
  • wireshark 运行中报错
  • 安卓12 热点固定ip
  • 运行长时间的数据库操作时,sqlserver management studio 左侧右键操作超时的原因

近期评论

  1. 一位 WordPress 评论者 发表在 世界,您好!
  2. 罗星雨 发表在 windows 双网卡dns服务器优先级设置
  3. Mango 发表在 conoha centos6.9 开启bbr 加速
  4. Mango 发表在 conoha centos6.9 开启bbr 加速
  5. xinmeow 发表在 关于

COPYRIGHT © 2026 新之助meow. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang