Chinaunix首页 | 论坛 | 博客
  • 博客访问: 628870
  • 博文数量: 110
  • 博客积分: 2352
  • 博客等级: 大尉
  • 技术积分: 1253
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-29 14:00
文章分类
文章存档

2018年(1)

2013年(20)

2012年(89)

发布时间:2013-08-07 17:29:26

前两天,在对Linux下的文本操作时,遇到值显示偶数行的情况,在网上找到如下几种方法能实现!sed '1d;n;d'  status.txtsed -n 'n;p' status.txtsed -n '0~2p' status.txtawk '!(NR%2)' status.txtawk 'i++%2' status.txtawk '!(i=i?0:1)' status.txtawk '!(i=!i)' status.txt.........【阅读全文】

阅读(2861) | 评论(0) | 转发(0)

发布时间:2013-08-02 16:54:15

场景:最近在维护一个数据库时,发现归档日志狂增,大概3小时就写50GB,鉴于数据库中的内容不是非常重要,而空间又少的情况,于是写了如下shell脚本来进行删除一小时前的归档日志#!/bin/bashDir1="/home/oracle/flash_recovery_area/COOLPAD/archivelog/"Dir2="/opt/archivelog/"#find  ${Dir} -amin +60 -exec r.........【阅读全文】

阅读(2794) | 评论(0) | 转发(0)

发布时间:2013-07-31 15:27:11

场景:服务器上删除mysql5.1.59版本后,安装新版本mysql 5.5 24,在初始化完成后,登录数据库时遇到如下问题:mysql: error while loading shared libraries: libtinfo.so.5:cannot open shared object file: No such file or directory 解决方法:(1)先在/usr/lib64目录下查找文件,lrwxrwxrwx. 1 root root 25 1.........【阅读全文】

阅读(5683) | 评论(0) | 转发(0)

发布时间:2013-07-27 16:58:57

数据库迁移时启动失败!......【阅读全文】

阅读(3699) | 评论(0) | 转发(1)

发布时间:2013-07-23 15:05:55

1.具有相同core id的cpu是同一个core的超线程。 2.具有相同physical id的cpu是同一颗cpu封装的线程或者cores。 英文版: 1.Physical id and core id are not necessarily consecutive but they are unique. Any cpu with the same core id are hyperthreads in the same core.2.Any cpu with the same p.........【阅读全文】

阅读(9274) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册