器量大者,福泽必厚
全部博文(587)
发布时间: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-06-09 16:19:56
在lvs机器上有如下的防火墙配置: -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT 导致后台的realserver机器上的httpd进程不正常,有很多的D状态的进程:如下: 29679 httpuser 16 &.........【阅读全文】
发布时间:2013-05-27 17:03:42
转摘之:http://www.cnblogs.com/yeahgis/archive/2012/05/15/2501112.html......【阅读全文】
发布时间:2013-05-27 15:10:57
Configure Postfix to Use Gmail SMTP on UbuntuPosted by Rahul Bansal on February 18, 2013 in Tutorials{11 Comments}If you want to use a Gmail account as a free SMTP server on your Ubuntu-Linux server, you will find this article useful. This gui.........【阅读全文】
发布时间:2013-05-24 15:44:02
[root@varnish1 ~]# cat mongo.sh.bak #!/bin/shecho "db.serverList.find({status:\"0\"},{ip:1,\"_id\":0})" | mongo loldbRtmp | grep ip >/root/ip.txtif [ -s /root/ip.txt ] ; thenecho "It has errors" >/root/mongodbstatus.txt/bin/awk -F\" '{ print $4}' /root/ip.txt>/root/proble.........【阅读全文】