package main import ( "crypto/tls" "fmt" ) func main() { //LoadX509KeyPair读取并分析一个公用/私有密钥对从一对文件。该文件必须包含PEM编码数据。 _, err := tls.LoadX509KeyPair("./cert_d ...
分类:
其他好文 时间:
2016-05-15 09:38:20
阅读次数:
158
MySQL错误日志是记录MySQL 运行过程中较为严重的警告和错误信息,以及MySQL每次启动和关闭的详细信息。错误日志的命名通常为hostname.err。其中,hostname表示服务器主机名。 The error log contains information indicating when... ...
分类:
数据库 时间:
2016-05-12 01:33:26
阅读次数:
290
1链路聚合两端配置不匹配的时候就会出现err-disable。2双工不匹配。3BPDU,也就是和portfast和BPDUguard有关。4链路的抖动,当链路在10秒内反复up、down五次,那么就进入err-disable状态。5最后一个原因,相对简单,就是由于配置了port-securityviolationshutdown。这个太简单..
分类:
其他好文 时间:
2016-05-12 00:00:24
阅读次数:
354
当数据库异常down掉或系统异常重启后,开启业务前需启动数据库,查看err日志,查看数据库有无损坏,修复后,在开启业务。这里的检查和修复,只针对MyISAM,相关操作如下:检查数据库中表有没有损坏:mysqlcheck-uroot-p-h127.0.0.1-P3306-c库名mysql数据库修复:方法一:0.进入..
分类:
数据库 时间:
2016-05-08 20:01:05
阅读次数:
268
linux kernel被bootloader加载到内存后,cpu首先执行head.s中的start_of_setup函数等函数,然后跳转到main.c,main中首先执行detect_memory函数探测内存;
int detect_memory(void)
{
int err = -1;
if (detect_memory_e820() > 0)
err = 0;
if (!d...
分类:
其他好文 时间:
2016-05-07 11:27:50
阅读次数:
257
常用类 系统相关类 System类 System类是一个final类,该类的所有属性和方法都是静态的。System类的属性in、out和err分别对应标准输入、标准输出和错误输出流。System类常用于记录程序执行的时间、复制数组、确定当前的系统属性和获得系统环境变量等工作 - currentTim ...
分类:
编程语言 时间:
2016-05-04 23:02:02
阅读次数:
409
一、源码 var fs=require('fs');fs.readFile('TxtFile.txt','utf-8',function(err,data){if(err){console.log(err);}else{console.log(data);}});console.log('end') ...
分类:
Web程序 时间:
2016-05-03 23:40:45
阅读次数:
228
前提安装postfix#!/bin/shelllog=/home/DBdata/DB2.err#原来error记录数numA=`cat/tmp/mysqlerrorNB.log`#当前error数numB=`cat$log|grep"ERROR"|wc-l`#增加的error条目numC=$(($numB-$numA))#从日志中过滤出error日志errTotal=/tmp/mysqlerrTotal.log#对新增的error日志提取,..
分类:
数据库 时间:
2016-05-03 12:52:29
阅读次数:
229
1、Redis报错:ERR Operation against a key holding the wrong kind of value 解决处理 redis 127.0.0.1:6379>type key 查找key的数据类型,使用对应的命令进行操作 在线命令说明: http://doc.red... ...
分类:
其他好文 时间:
2016-05-03 10:43:36
阅读次数:
172
官方文档提示: 官方错误说明: 实际错误案例: 官方解决方案: ...
分类:
其他好文 时间:
2016-05-01 01:02:18
阅读次数:
226