摘要: #!/usr/bin/expect set ipaddress [lindex $argv 0] set passwd [lindex $argv 1] set timeout 3 spawn ssh root@${ipaddress} expect { "yes/no" { send "yes\r 阅读全文
posted @ 2017-08-01 17:00 Ray雷 阅读(251) 评论(0) 推荐(0)
摘要: select TABLE_NAME, concat(truncate(data_length/1024/1024,2),' MB') as data_size, concat(truncate(index_length/1024/1024,2),' MB') as index_size from i 阅读全文
posted @ 2017-08-01 16:58 Ray雷 阅读(160) 评论(0) 推荐(0)
摘要: select TABLE_SCHEMA, concat(truncate(sum(data_length)/1024/1024,2),' MB') as data_size, concat(truncate(sum(index_length)/1024/1024,2),'MB') as index_ 阅读全文
posted @ 2017-08-01 16:57 Ray雷 阅读(473) 评论(0) 推荐(0)
摘要: 1,写一个循环,ping整个子网的ip。 使用while循环 #!/bin/bash ip=223 while [ "$ip" -ne "239" ] do ping 121.201.0.$ip -c1 && echo "121.201.0.$ip yes" >> ip_list.txt || ec 阅读全文
posted @ 2017-08-01 12:03 Ray雷 阅读(245) 评论(0) 推荐(0)
摘要: 我们以E3、E5、E7系列进行一个详细解析。首先,Intel E3、E5、E7代表了3个不同档次的至强CPU,至强“E系列”的这种命名方式有些类似桌面上的Core i3,i5,i7;比较通俗易懂的解释就是可以对应我们的豪华汽车生产商宝马3系,5系和7系。分别对应好,更好和最好。 其次,E3-1230 阅读全文
posted @ 2017-08-01 12:01 Ray雷 阅读(2941) 评论(0) 推荐(0)
摘要: https://code.google.com/p/httperf/ ※测量Web服务器的性能 ./configure make &&make install http://www.xenoclast.org/autobench/downloads/autobench-2.1.2.tar.gz ※是 阅读全文
posted @ 2017-08-01 12:00 Ray雷 阅读(262) 评论(0) 推荐(0)
摘要: 一 安装篇 1. 安装nginx yum check-update #更新yum源 yum remove httpd* php* #删除系统自带的软件包 yum install nginx #安装nginx 根据提示输入y进行安装 chkconfig nginx on #设置nginx开机启动 se 阅读全文
posted @ 2017-08-01 11:59 Ray雷 阅读(158) 评论(0) 推荐(0)
摘要: 一,安装与配置ipvsadm ipvsadm --help #查询是否安装成功 二,配置Director Server服务器 1. ifconifg eth0:0 183.61.87.47 broadcast 192.168.1.200 netmask 255.255.255.255 up #在et 阅读全文
posted @ 2017-08-01 11:57 Ray雷 阅读(305) 评论(0) 推荐(0)
摘要: repository,资源库,源的意思。RHEL EPEL(Extra Packages for Enterprise Linux) Repo是Linux发行版中最大的软件仓库之一,免费,丰富的软件包更新。 安装步骤Centos 5.x wget http://dl.fedoraproject.or 阅读全文
posted @ 2017-08-01 11:57 Ray雷 阅读(335) 评论(0) 推荐(0)
摘要: vi auto_ssh.exp #!/usr/bin/expect set ipaddress "123.227.159.159" set passwd "你的密码" set timeout 30 spawn ssh root@$ipaddress expect { "yes/no" {send " 阅读全文
posted @ 2017-08-01 11:55 Ray雷 阅读(268) 评论(0) 推荐(0)