2018-11-11 08:59:30 fswhwd 阅读数 5491
  • 《C深度解析》第二章 C预编译——宏定义、条件编译、...

    课程内容: (1)回顾c预编译 (2)宏定义:无宏体宏、有宏体宏、带参宏、宏定义与复杂表达式。 (3)条件编译:#if、#else、#elif #endif、#ifdef和#ifndef、#if与defined、条件编译与配置文件 (4)一些特殊的预编译关键字与实际应用:defined、#error、#line、#与##、#pragma (5)文件包含:是否只能包含.h文件,<>与""区别等。

    296 人正在学习 去看看 张先凤

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

               
more、tail、vi 但是由于日志太大了,而我只需要记录ERROR信息就可以了,通过用more和vi查日志都是从上往下查出ERROR信息,虽然tail是从后向前查看,但是又不好定位应该看多少行才能找到最后一个ERROR信息。有什么办法或命令能够从后向前查看日志中最后记录的一个ERROR信息的办法呢?
tail -100 |grep error查看最后一百条日志中并过滤出包含error内容的100可随意修改

           

给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow

这里写图片描述
2018-06-08 17:08:17 qq_34870631 阅读数 1571
  • 《C深度解析》第二章 C预编译——宏定义、条件编译、...

    课程内容: (1)回顾c预编译 (2)宏定义:无宏体宏、有宏体宏、带参宏、宏定义与复杂表达式。 (3)条件编译:#if、#else、#elif #endif、#ifdef和#ifndef、#if与defined、条件编译与配置文件 (4)一些特殊的预编译关键字与实际应用:defined、#error、#line、#与##、#pragma (5)文件包含:是否只能包含.h文件,<>与""区别等。

    296 人正在学习 去看看 张先凤
EPERM 1 Operation not permitted 操作不允许
ENOENT 2 No such file or directory 文件/路径不存在
ESRCH 3 No such process 进程不存在
EINTR 4 Interrupted system call 中断的系统调用
EIO 5 Input/output error I/O错误
ENXIO 6 No such device or address 设备/地址不存在
E2BIG 7 Argument list too long 参数列表过长
ENOEXEC 8 Exec format error 执行格式错误
EBADF 9 Bad file descriptor 错误文件编号
ECHILD 10 No child processes 子进程不存在
EAGAIN 11 Try again  重试
ENOMEM 12 Out of memory 内存不足
EACCES 13 Permission denied 无权限
EFAULT 14 Bad address 地址错误
ENOTBLK 15 Block device required 需要块设备
EBUSY 16 Device or resource busy 设备或资源忙
EEXIST 17 File exists 文件已存在
EXDEV 18 Invalid Cross-device link 跨设备链路
ENODEV 19 No such device 设备不存在
ENOTDIR 20 Not a directory 目录不存在
EISDIR 21 Is a directory 是目录
EINVAL 22 Invalid argument 无效参数
ENFILE 23 File table overflow 无效参数
EMFILE 24 Too many open files 打开的文件过多
ENOTTY 25 Not a tty device 非tty设备
ETXTBSY 26 Text file busy 文本文件忙
EFBIG 27 File too large 文件太大
ENOSPC 28 No space left on device 设备无空间
ESPIPE 29 Illegal seek 非法查询
EROFS 30 Read-only file system 只读文件系统
EMLINK 31 Too many links 链接太多
EPIPE 32 Broken pipe 管道破裂
EDOM 33 Math argument out of domain of func  参数超出函数域
ERANGE 34 Math result not representable 结果无法表示
EDEADLK 35 Resource deadlock would occur 资源将发生死锁
ENAMETOOLONG 36 Filename too long 文件名太长
ENOLCK 37 No record locks available 没有可用的记录锁
ENOSYS 38 Function not implemented 函数未实现
ENOTEMPTY 39 Directory not empty 目录非空
ELOOP 40 Too many symbolic links encountered 遇到太多符号链接
EWOULDBLOCK 41 Same as EAGAIN 操作会阻塞
ENOMSG 42 No message of desired type 没有符合需求类型的消息
EIDRM 43 Identifier removed 标识符已删除
ECHRNG 44 Channel number out of range 通道编号超出范围
EL2NSYNC 45 Level 2 not synchronized level2不同步
EL3HLT 46 Level 3 halted 3级停止
EL3RST 47 Level 3 reset 3级重置
ELNRNG 48 Link number out of range 链接编号超出范围
EUNATCH 49 Protocol driver not attached 协议驱动程序没有连接
ENOCSI 50 No CSI structure available 没有可用的CSI结构
EL2HLT 51 Level 2 halted 2级停止
EBADE 52 Invalid exchange 无效交换
EBADR 53 Invalid request descriptor 无效请求描述
EXFULL 54 Exchange full 交换完全
ENOANO 55 No anode 无元素节点
EBADRQC 56 Invalid request code 无效请求码
EBADSLT 57 Invalid slot 无效插槽
EDEADLOCK  - Same as EDEADLK
EBFONT 59 Bad font file format 错误的字体文件格式
ENOSTR 60 Device not a stream 不是流设备
ENODATA 61 No data available 无数据
ETIME 62 Timer expired 计时器到期
ENOSR 63 Out of streams resources 流资源不足
ENONET 64 Machine is not on the network 机器不在网络上
ENOPKG 65 Package not installed 包未安装
EREMOTE 66 Object is remote 是远程对象
ENOLINK 67 Link has been severed 链接正在服务中
EADV 68 Advertise error 广告错误
ESRMNT 69 Srmount error
ECOMM 70 Communication error on send 发送过程中通讯错误
EPROTO 71 Protocol error 协议错误
EMULTIHOP 72 Multihop attempted 多跳尝试
EDOTDOT 73 RFS specific error RFS特定错误
EBADMSG 74 Not a data message 不是数据类型消息
EOVERFLOW 75 Value too large for defined data type 对指定的数据类型来说值太大
ENOTUNIQ 76 Name not unique on network 网络上名字不唯一
EBADFD 77 File descriptor in bad state 文件描述符状态错误
EREMCHG 78 Remote address changed 远程地址改变
ELIBACC 79 Cannot access a needed shared library 无法访问需要的共享库
ELIBBAD 80 Accessing a corrupted shared library 访问损坏的共享库
ELIBSCN 81 A .lib section in an .out is corrupted 库部分在an.out损坏
ELIBMAX 82 Linking in too many shared libraries 试图链接太多的共享库
ELIBEXEC 83 Cannot exec a shared library directly 不能直接运行共享库
EILSEQ 84 Illegal byte sequence 非法字节序
ERESTART 85 Interrupted system call should be restarted 应重新启动被中断的系统调用
ESTRPIPE 86 Streams pipe error 流管错误
EUSERS 87 Too many users 用户太多
ENOTSOCK 88 Socket operation on non-socket 在非套接字上进行套接字操作
EDESTADDRREQ 89 Destination address required 需要目的地址
EMSGSIZE 90 Message too long 消息太长
EPROTOTYPE 91 Protocol wrong type for socket 错误协议类型
ENOPROTOOPT 92 Protocol not available 协议不可用
EPROTONOSUPPORT 93 Protocol not supported 不支持协议
ESOCKTNOSUPPORT 94 Socket type not supported 不支持套接字类型
EOPNOTSUPP 95 Operation not supported on transport endpoint 操作上不支持传输端点
EPFNOSUPPORT 96 Protocol family not supported 不支持协议族
EAFNOSUPPORT 97 Address family not supported by protocol 协议不支持地址群
EADDRINUSE 98 Address already in use 地址已被使用
EADDRNOTAVAIL 99 Cannot assign requested address 无法分配请求的地址
ENETDOWN 100 Network is down 网络已关闭
ENETUNREACH 101 Network is unreachable 网络不可达
ENETRESET 102 Network dropped connection because of reset 网络由于复位断开连接
ECONNABORTED 103 Software caused connection 软件导致连接终止
ECONNRESET 104 Connection reset by peer 连接被对方复位
ENOBUFS 105 No buffer space available 没有可用的缓存空间
EISCONN 106 Transport endpoint is already connected 传输端点已连接
ENOTCONN 107 Transport endpoint is not connected 传输端点未连接
ESHUTDOWN 108 Cannot send after transport endpoint shutdown  传输端点关闭后不能在发送
ETOOMANYREFS 109 Too many references 太多的引用
ETIMEDOUT 110 Connection timed 连接超时
ECONNREFUSED 111 Connection refused 连接被拒绝
EHOSTDOWN 112 Host is down 主机已关闭
EHOSTUNREACH 113 No route to host 无法路由到主机
EALREADY 114 Operation already 操作已在进程中
EINPROGRESS 115 Operation now in 进程中正在进行的操作
ESTALE 116 Stale NFS file handle 过时的NFS文件句柄
EUCLEAN 117 Structure needs cleaning 结构需要清除
ENOTNAM 118 Not a XENIX-named 不是XENIX 命名
ENAVAIL 119 No XENIX semaphores 没有XENIX信号量
EISNAM 120 Is a named type file 是命名类型文件
EREMOTEIO 121 Remote I/O error 远程I/O错误
EDQUOT 122 Quota exceeded 超出配额
ENOMEDIUM 123 No medium found 未发现介质
EMEDIUMTYPE 124 Wrong medium type 错误介质类型
E 125 Operation canceled 取消操作
E 126 Required key not available 所需密钥不可用
E 127 Key has expired 密钥已过期
E 128 Key has been revoked 密钥已被吊销
E 129 Key was rejected by service 密钥被服务拒绝
E 130 Owner died 所有者被删除
E 131 State not recoverable 不可恢复状态

2018-11-14 04:21:31 hsghggt 阅读数 205
  • 《C深度解析》第二章 C预编译——宏定义、条件编译、...

    课程内容: (1)回顾c预编译 (2)宏定义:无宏体宏、有宏体宏、带参宏、宏定义与复杂表达式。 (3)条件编译:#if、#else、#elif #endif、#ifdef和#ifndef、#if与defined、条件编译与配置文件 (4)一些特殊的预编译关键字与实际应用:defined、#error、#line、#与##、#pragma (5)文件包含:是否只能包含.h文件,<>与""区别等。

    296 人正在学习 去看看 张先凤

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

                用tar命令(tar -cvfz src.tar.gz src)去压缩一个目录,遇到错误"Error exit delayed from previous errors"

原因选项"f" 表示The archive file name is given on the command line (required whenever the tar output is going to a file),f后边需要跟压缩文件的名字。


所以把tar命令从"tar -cvfz src.tar.gz src"改成"tar -czvf src.tar.gz src"后,就不会遇到那个错误了。

           

给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow

这里写图片描述
2019-10-29 14:36:31 weixin_39133690 阅读数 323
  • 《C深度解析》第二章 C预编译——宏定义、条件编译、...

    课程内容: (1)回顾c预编译 (2)宏定义:无宏体宏、有宏体宏、带参宏、宏定义与复杂表达式。 (3)条件编译:#if、#else、#elif #endif、#ifdef和#ifndef、#if与defined、条件编译与配置文件 (4)一些特殊的预编译关键字与实际应用:defined、#error、#line、#与##、#pragma (5)文件包含:是否只能包含.h文件,<>与""区别等。

    296 人正在学习 去看看 张先凤

今天朋友的测试库报错, ORA-27072: File I/O error, Linux-x86_64 Error: 5: Input/output error,数据块已经不能正常启动,看到 Linux-x86_64 Error: 5: Input/output error多数是磁盘空间满导致的

KCF: read, write or open error, block=0x283980 >

    file=5 '/app/oradata1/general_1.dbf'

    error=27072 txt: 'Linux-x86_64 Error: 5: Input/output error

Additional information: 4

Additional information: 2636160

Additional information: -1’

Errors in file /home/oracle/app/diag/rdbms/orcl/orcl/trace/orcl_dbw1_30299.trc:

ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode

ORA-01114: IO error writing block to file 5 (block # 2636160)

ORA-01110: data file 5: ‘/app/oradata1/general_1.dbf’

ORA-27072: File I/O error

Linux-x86_64 Error: 5: Input/output error

Additional information: 4

Additional information: 2636160

Additional information: -1

DBW1 (ospid: 30299): terminating the instance due to error 1242

Termination issued to instance processes. Waiting for the processes to exit

Instance terminated by DBW1, pid = 30299

查看磁盘使用情况,看空间还都比较富于,貌似不是空间引起的

[root@template app]# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/vda3 16G 12G 3.5G 77% /

tmpfs 32G 17G 15G 53% /dev/shm

/dev/vda1 194M 32M 153M 17% /boot

/dev/vdb1 2.0T 907G 963G 49% /app

查看主机是虚拟机还是物理机,发现是个虚拟机,如果是虚拟机的话可能出现存储超分的情况,(存储超分就是看着使用率可能不高但是实际上物理磁盘的空间可能已经满了)

[root@template app]# dmidecode |grep -i prod

    Product Name: OpenStack Nova

删除了/app下的部分文件,如果删除部分文件能启动的话就是存储超分了

SQL> startup

ORACLE instance started.

Total System Global Area 2.6991E+10 bytes

Fixed Size 2213976 bytes

Variable Size 1.9596E+10 bytes

Database Buffers 7247757312 bytes

Redo Buffers 145174528 bytes

Database mounted.

Database opened.

数据库能正常启动了说明了存储还是存在超分的情况,删除部分文件释放了空间部分空间数据库就能正常启动了。

有点奇怪的是dbv检测数据文件居然还有坏块

[oracle@template ~]$ dbv file=/app/oradata1/general_1.dbf blocksize=8192

DBVERIFY: Release 11.2.0.1.0 - Production on ÐÇÆÚ¶þ 10ÔÂ 29 11:19:44 2019

Copyright © 1982, 2009, Oracle and/or its affiliates. All rights reserved.

DBVERIFY - Verification starting : FILE = /app/oradata1/general_1.dbf

Page 2760430 is influx - most likely media corrupt

Corrupt block relative dba: 0x016a1eee (file 5, block 2760430)

Fractured block found during dbv:

Data in bad block:

type: 0 format: 2 rdba: 0x016a1eee

last change scn: 0x0000.00000000 seq: 0x1 flg: 0x05

spare1: 0x0 spare2: 0x0 spare3: 0x0

consistency value in tail: 0x3454286e

check value in block header: 0xb884

computed block checksum: 0x5843

Page 2760431 is marked corrupt

Corrupt block relative dba: 0x016a1eef (file 5, block 2760431)

Bad header found during dbv:

Data in bad block:

type: 67 format: 4 rdba: 0x45726576

last change scn: 0x6973.6e657478 seq: 0x6f flg: 0x6e

spare1: 0x72 spare2: 0x69 spare3: 0x7661

consistency value in tail: 0x43746567

check value in block header: 0x6a2e

computed block checksum: 0x21

Page 2760432 is marked corrupt

Corrupt block relative dba: 0x016a1ef0 (file 5, block 2760432)

Bad header found during dbv:

Data in bad block:

type: 111 format: 6 rdba: 0x6f697463

last change scn: 0x786f.7250286e seq: 0x6f flg: 0x6f

spare1: 0x6e spare2: 0x65 spare3: 0x7461

consistency value in tail: 0x664f2e65

check value in block header: 0x446c

computed block checksum: 0x3f34

Page 2760433 is marked corrupt

Corrupt block relative dba: 0x016a1ef1 (file 5, block 2760433)

Bad header found during dbv:

Data in bad block:

type: 115 format: 3 rdba: 0x6f666e49

last change scn: 0x6369.76726553 seq: 0x65 flg: 0x2e

spare1: 0x79 spare2: 0x73 spare3: 0x4874

consistency value in tail: 0x6f687465

check value in block header: 0x6567

computed block checksum: 0x435d

Page 2760434 is marked corrupt

Corrupt block relative dba: 0x016a1ef2 (file 5, block 2760434)

Bad header found during dbv:

Data in bad block:

type: 100 format: 6 rdba: 0x353a6176

last change scn: 0x325b.0a293739 seq: 0x30 flg: 0x31

spare1: 0x6a spare2: 0x61 spare3: 0x3930

consistency value in tail: 0x486e6f69

check value in block header: 0x2e38

block checksum disabled

Page 2760435 is marked corrupt

Corrupt block relative dba: 0x016a1ef3 (file 5, block 2760435)

Bad header found during dbv:

Data in bad block:

type: 97 format: 6 rdba: 0x6a2e7265

last change scn: 0x3031.3a617661 seq: 0x39 flg: 0x29

spare1: 0x64 spare2: 0x6c spare3: 0x3032

consistency value in tail: 0x53707474

check value in block header: 0x5b0a

block checksum disabled

Page 2760436 is marked corrupt

Corrupt block relative dba: 0x016a1ef4 (file 5, block 2760436)

Bad header found during dbv:

Data in bad block:

type: 101 format: 2 rdba: 0x732e7465

last change scn: 0x6563.69767265 seq: 0x28 flg: 0x48

spare1: 0x76 spare2: 0x6c spare3: 0x5370

consistency value in tail: 0x74696e6f

check value in block header: 0x7474

block checksum disabled

Page 2760437 is marked corrupt

Corrupt block relative dba: 0x016a1ef5 (file 5, block 2760437)

Bad header found during dbv:

Data in bad block:

type: 111 format: 2 rdba: 0x69546c72

last change scn: 0x746c.6946656d seq: 0x65 flg: 0x72

spare1: 0x58 spare2: 0x55 spare3: 0x7661

consistency value in tail: 0x7270732e

check value in block header: 0x6a2e

block checksum disabled

Page 2760438 is marked corrupt

Corrupt block relative dba: 0x016a1ef6 (file 5, block 2760438)

Bad header found during dbv:

Data in bad block:

type: 105 format: 6 rdba: 0x656d6172

last change scn: 0x772e.6b726f77 seq: 0x65 flg: 0x62

spare1: 0x67 spare2: 0x66 spare3: 0x6c69

consistency value in tail: 0x542e6c69

check value in block header: 0x662e

block checksum disabled

Page 2760439 is marked corrupt

Corrupt block relative dba: 0x016a1ef7 (file 5, block 2760439)

Bad header found during dbv:

Data in bad block:

type: 104 format: 2 rdba: 0x6f6f5064

last change scn: 0x6d65.7449246c seq: 0x2e flg: 0x72

spare1: 0x65 spare2: 0x61 spare3: 0x5428

consistency value in tail: 0x72456573

check value in block header: 0x6e75

block checksum disabled

Page 2760440 is marked corrupt

Corrupt block relative dba: 0x016a1ef8 (file 5, block 2760440)

Bad header found during dbv:

Data in bad block:

type: 114 format: 7 rdba: 0x6f726874

last change scn: 0x7845.6c715377 seq: 0x63 flg: 0x65

spare1: 0x72 spare2: 0x2e spare3: 0x6f69

consistency value in tail: 0x33302e33

check value in block header: 0x7470

computed block checksum: 0xe79

Page 2760441 is marked corrupt

Corrupt block relative dba: 0x016a1ef9 (file 5, block 2760441)

Bad header found during dbv:

Data in bad block:

type: 50 format: 5 rdba: 0x616a2074

last change scn: 0x6c71.732e6176 seq: 0x2e flg: 0x44

spare1: 0x9 spare2: 0x61 spare3: 0x6576

consistency value in tail: 0x0a293830

check value in block header: 0x6972

computed block checksum: 0xb3c

Page 2760442 is marked corrupt

Corrupt block relative dba: 0x016a1efa (file 5, block 2760442)

Bad header found during dbv:

Data in bad block:

type: 91 format: 2 rdba: 0x39302e38

last change scn: 0x3231.2039322e seq: 0x3a flg: 0x33

spare1: 0x30 spare2: 0x31 spare3: 0x3334

consistency value in tail: 0x00000000

check value in block header: 0x3a35

block checksum disabled

Page 2760443 is marked corrupt

Corrupt block relative dba: 0x016a1efb (file 5, block 2760443)

Completely zero block found during dbv:

Page 2760444 is marked corrupt

Corrupt block relative dba: 0x016a1efc (file 5, block 2760444)

Completely zero block found during dbv:

Page 2760445 is marked corrupt

Corrupt block relative dba: 0x016a1efd (file 5, block 2760445)

Completely zero block found during dbv:

Page 2760446 is marked corrupt

Corrupt block relative dba: 0x016a1efe (file 5, block 2760446)

Completely zero block found during dbv:

Page 2760447 is marked corrupt

Corrupt block relative dba: 0x016a1eff (file 5, block 2760447)

Completely zero block found during dbv:

DBVERIFY - Verification complete

Total Pages Examined : 4194302

Total Pages Processed (Data) : 2010582

Total Pages Failing (Data) : 0

Total Pages Processed (Index): 509952

Total Pages Failing (Index): 0

Total Pages Processed (Other): 392725

Total Pages Processed (Seg) : 0

Total Pages Failing (Seg) : 0

Total Pages Empty : 1281025

Total Pages Marked Corrupt : 18

Total Pages Influx : 1

Total Pages Encrypted : 0

Highest block SCN : 1998427953 (3594.1998427953)

[oracle@template ~]$

2010-01-08 11:18:02 jsjqjy 阅读数 25
  • 《C深度解析》第二章 C预编译——宏定义、条件编译、...

    课程内容: (1)回顾c预编译 (2)宏定义:无宏体宏、有宏体宏、带参宏、宏定义与复杂表达式。 (3)条件编译:#if、#else、#elif #endif、#ifdef和#ifndef、#if与defined、条件编译与配置文件 (4)一些特殊的预编译关键字与实际应用:defined、#error、#line、#与##、#pragma (5)文件包含:是否只能包含.h文件,<>与""区别等。

    296 人正在学习 去看看 张先凤

有的 时候我们为了解决某些自己以前弄过的问题 都想着是重装系统 ,其实这是没有办法才这样的!

 

 

   呵呵!

 

  处理问题的方式告诉我,多在javaeye上 转下 ,问题就好解决了

 

  我的问题是 远程访问linux上 的mysql一直不行,一直报 error  2003 : connection to mysql server  on 10065 我是用的 SQLyog 登陆的

 

 后来在网上查了,

1.

改表法。
可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"
mysql -u root -p123
mysql>use mysql;
mysql>update user set host = '%' where user = 'root';

 

2. 进入mysql 授予表 数据库 权限

 

 授权法。例如,你想 qjy  

使用mypassword从任何主机连接到mysql服务器的话。
GRANT ALL PRIVILEGES ON *.* TO 'qjy'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
要及时生效 : FLUSH PRIVILEGES
如果你想允许用户kevin从ip为192.168.1.101的主机连接到mysql服务器,并使用mypassword作为密码

GRANT ALL PRIVILEGES ON *.* TO 'qjy'@'192.168.1.101' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

 3. 防火墙

 

//关闭防火墙 

service iptables stop 

 

 

小结 :

 

   其实1,2都是为了在mysql 的 mysql数据库中的 user表 里面有这样的记录

select Host ,User from user where User ='root' and Host ='%'; 

 +------+------+
| Host | User |
+------+------+
| %    | root |
+------+------+

 

意思是 以root 用户登陆 ,在局域网 中 所有的其他主机上都可以访问

 

最后实在不行 关闭防火墙。

 

 以上是个人小结。

大家有兴趣可以看  http://taink.iteye.com/blog/493639

 

http://taink.iteye.com/blog/493633  2篇文章  作者 taink

 

Linux error 总结

阅读数 18

没有更多推荐了,返回首页