linux
honder试试
这个作者很懒,什么都没留下…
展开
-
Linux服务器意外关机,开机提示一下信息:an error occurred during the file system check.
解决方法,root密码 执行 fdisk -l 查看磁盘 (Repair filesystem)# fdisk -l 根据看到的磁盘依次修复 ,例如: (Repair filesystem)#fsck -y /dev/sda1 (Repair filesystem)#fsck -y /dev/sda2 (Repair filesystem)#fsck -y /dev/sda3 ...原创 2015-07-01 20:20:19 · 1145 阅读 · 0 评论 -
linux,日志查找技巧
1.查询日志中含有某个关键字的信息 1 cat app.log |grep 'error' 1 2.查询日志尾部最后10行的日志 1 tail -n 10 app.log 1 3.查询10行之后的所有日志 1 tail -n +10 app.log 1 4.查询日志文件中的头10行日志 1 head -n 10 app.log 1 5.查询日志文件除了最后10行的其他所有日志 1...原创 2019-09-11 19:56:13 · 272 阅读 · 0 评论