器量大者,福泽必厚
全部博文(587)
发布时间:2014-04-15 14:37:31
场景:web服务器的流量过大,超过了idc的限制,先准备将流量分到两台机器上,保证两台web机器的内容一致,而且能做双向同步环境介绍:web1:192.168.2.222web2:192.168.2.206搭建过程如下:安装unison要按照unison,首先需要安装ocaml,版本至少为3.07或更高下载地址:http://caml.inria.frtar xf ocaml.........【阅读全文】
发布时间:2013-06-28 16:03:05
#!/usr/bin/expect -f#Author by lvs#date is 2013-06-21set password helloabc@123spawn scp app100679381@10.***.2.99:/data/*.tar.gz /data/home/app100679381/f1_db/set timeout 2expect {"yes/no" {send "yes\r";exp_continue}}expect "Password:"set timeout 3send "$password\r"set timeout 300expec.........【阅读全文】
发布时间:2013-06-11 13:53:23
用途:检测php-fpm、nginx、mysql进程是否正常,如果不正常,则重启服务!#!/bin/bashlogpath=/home/scriptsurl="http://l**b.g**yz.com/index.php" status=$(/usr/bin/curl -s --head "$url" | awk '/HTTP/ {print $2}')if [ "$status" != "200" ] ; thenecho `date` .........【阅读全文】
发布时间:2013-05-24 15:40:57
mongodb记录如下:[root@varnish1 ~]# mongo loldbRtmp MongoDB shell version: 2.4.3connecting to: loldbRtmpServer has startup warnings: Fri May 24 10:27:29.880 [initandlisten] Fri May 24 10:27:29.880 [initandlisten] ** NOTE: This is a 32 bit MongoDB binary.Fri May 24 10:27:2.........【阅读全文】