随笔分类 - Linux
运维用的一些
摘要:1. ssh超时时间设置 客户端超时时间设置: ssh -o ConnectTimeout=10 user@host 2. wget下载文件到指定目录 2.1. 不指定 wget + 网址 2.2. 指定下载目录 wget -P 地址 网址 2.3. 指定下载目录和文件名 wget 网址 -o 地址
阅读全文
摘要:OS: AIX 5300-12-05-1140 背景: 上了一台很老的 Oracle 查问题,手滑了,直接vi 了alert日志,报错了... 1. 报错如下 oraprd> vi alert_PRD.log ex: 0602-101 Out of memory saving lines for u
阅读全文
摘要:too many files open in system 查看哪个用户或进程占用的文件多 #查看进程打开文件数最多的前5个进程 lsof | awk '{print $2}' | sort | uniq -c | sort -rn | head -n 5 lsof -n| awk '{print
阅读全文
摘要:_ pstack 7359 pid.info pt pmp pid.info
阅读全文
摘要:"官网" "下载" 装包 yum y install make automake libtool pkgconfig libaio devel 编译安装 ./autogen.sh ./configure make j make install 官网给出的 "安装步骤" 漏了 这步,直接./confi
阅读全文
摘要:"Linux error numbers, straight from the horse's mouth. " define EPERM 1 / Operation not permitted / define ENOENT 2 / No such file or directory / defi
阅读全文
摘要:Linux运行级别 0 halt (Do NOT set initdefault to this) 1 Single user mode 2 Multiuser, without NFS (The same as 3, if you do not have networking) 3 Full mu
阅读全文
摘要:原因:内存不足,SWAP不足 创建分区文件,大小 4G [root@mysql05 ~]# dd if=/dev/zero of=/data/swapfile bs=1k count=4096000 4096000+0 records in 4096000+0 records out 4194304
阅读全文
摘要:下载createrepo包并安装 下载地址: "ftp://195.220.108.108/linux/dag/redhat/el4/en/i386/dag/RPMS/createrepo 0.4.6 1.el4.rf.noarch.rpm " 安装createrepo 包 rpm ivh crea
阅读全文
摘要:简单记两个 [root@oracle ~] ip route show default via 192.0.2.2 dev eth0 proto static 192.0.2.0/24 dev eth0 proto kernel scope link src 192.0.2.110 metric 1
阅读全文
摘要:仅在 Oracle Linux Server release 6.3 上测试 PS:Oracle Linux Server release 6.3仅用于测试,不能用于商业用途 [root@oracle mysql] mkdir /media/disk [root@oracle mysql] moun
阅读全文