摘要: #!/bin/sh # chkconfig: 2345 40 98 # description: Start/Stop Nginx server path=/application/nginx/sbin pid=/application/nginx/logs/nginx.pid RETVAL=0 . 阅读全文
posted @ 2017-08-31 16:38 盛碗米饭 阅读(1041) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash# filename :linux_optimize.sh# #export PATH=$PATH:/bin:/sbin:/usr/sbin# Require root to run this script.if [ "$UID" != "0" ]; then echo "Pl 阅读全文
posted @ 2017-08-31 15:05 盛碗米饭 阅读(170) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash# filename : 8_5_1.sh function usage(){ echo "usage:$0 url" exit 1} function check_url(){ wget --spider -q -o /dev/null --tries=1 -T 5 $1 i 阅读全文
posted @ 2017-08-31 14:44 盛碗米饭 阅读(254) 评论(0) 推荐(0) 编辑
摘要: <?php/*php如何连接mysql*/ /*$link = mysql_connect('localhost', 'root', '');if (!$link) { die('Could not connect: ' . mysql_error());}echo 'Connected succe 阅读全文
posted @ 2017-08-31 11:30 盛碗米饭 阅读(207) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh # filename: mon_mc.sh export MemcahedIp=$1export MemcahedPort=$2export NcCmd="nc $MemcahedIp $MemcachedPort"export MD5=3fe396c01f03425cb5e2d 阅读全文
posted @ 2017-08-31 11:15 盛碗米饭 阅读(161) 评论(0) 推荐(0) 编辑
摘要: <?php header('Content-type: text/html; charset=utf8');# 抽象接口interface hash{ public function _hash($str);}interface distribution{ public function looku 阅读全文
posted @ 2017-08-31 10:42 盛碗米饭 阅读(178) 评论(0) 推荐(0) 编辑