摘要: # htpasswd -b /usr/local/nagios/etc/htpasswd.users uuwatch 1234+asdf //在现有用户下添加用户和密码[root@slave1 ~]# cat /usr/local/nagios/etc/htpasswd.users ... 阅读全文
posted @ 2015-07-08 14:04 arun_yh 阅读(190) 评论(0) 推荐(0)
摘要: 设备名称:[root@DB232 shell]# cat /proc/scsi/scsi Attached devices:Host: scsi0 Channel: 02 Id: 00 Lun: 00 Vendor: DELL Model: PERC 5/i Rev: 1.03 Type: Dire... 阅读全文
posted @ 2015-07-07 14:13 arun_yh 阅读(4154) 评论(0) 推荐(0)
摘要: 如何解决for循环嵌套问题?i161 admin # for x in `cat tongjidisk`;do ssh $x echo -----------------------$x------------------------; ssh $x for z in a b c d e f g h... 阅读全文
posted @ 2015-07-07 11:40 arun_yh 阅读(236) 评论(0) 推荐(0)
摘要: 创建以当前时间为文件名的mkdir `date+%Y%m%d`备份以时间做为文件名的tar cvf./htdocs`date +%Y%m%d`.tar ./*date命令如何获得上星期的日期?lastmonth=`date+%Y-%m --date="-1 month"`"-01";然后 awk -... 阅读全文
posted @ 2015-07-07 09:23 arun_yh 阅读(6308) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-07-06 23:37 arun_yh 阅读(116) 评论(0) 推荐(0)
摘要: 有时想知道服务器上有几块磁盘,如果没有做raid,则可以简单使用fdisk -l就可以看到。但是做了raid呢,这样就看不出来了。那么如何查看服务器上做了raid? 软件raid:只能通过Linux系统本身来查看 cat /proc/mdstat 可以看到raid级别,状态等信息。 硬... 阅读全文
posted @ 2015-07-06 21:36 arun_yh 阅读(7340) 评论(0) 推荐(1)
摘要: 我 们在磁盘写操作持续繁忙的服务器上曾经碰到一个特殊的性能问题。每隔 30 秒,服务器就会遇到磁盘写活动高峰,导致请求处理延迟非常大(超过3秒)。后来上网查了一下资料,通过调整内核参数,将写活动的高峰分布成频繁的多次写, 每次写入的数据比较少。这样可以把尖峰的写操作削平成多次写操作。以这种方式执行的... 阅读全文
posted @ 2015-07-06 21:34 arun_yh 阅读(494) 评论(0) 推荐(0)
摘要: Centos安装hdparm测试硬盘性能一、安装hdparmyum install hdparm -y Linux学习,http:// linux.it.net.cn 二、评估读取SSD 硬盘,请使用hdparm命令进行读取测试。hdparm -t /dev/sda1 Linux学习,http://... 阅读全文
posted @ 2015-07-06 19:44 arun_yh 阅读(1006) 评论(0) 推荐(0)
摘要: i161 admin # ssh 192.168.5.209 dmidecode | grep 'Ending Address' -B1 -A2 Starting Address: 0x00000000000 Ending Address: 0x005FFFFFFFF Range Size: 24 ... 阅读全文
posted @ 2015-07-06 19:28 arun_yh 阅读(1712) 评论(0) 推荐(0)
摘要: 1.显卡信息 dmesg | grep -i vga lspci | grep -i vga//查看显卡信息2.dmidecode | grep -i 'Serial Number'//查看主板信息,查看主板的序列号[root@i175 ~]# dmidecode |grep -i "Produ... 阅读全文
posted @ 2015-07-06 19:09 arun_yh 阅读(1835) 评论(0) 推荐(0)