#!/bin/sh
if [ -z "`curl --connect-timeout 15 --max-time 20 --head --silent http://localhost/index.php|head -n 1|grep ‘200‘`" ];then
echo -e "$(date +%Y-%m-%d)\n"
killall nginx
killall...
分类:
Web程序 时间:
2014-07-31 17:23:50
阅读次数:
301
微软近期Open的职位:SDE2 (Windows - Power)Windows Partner Enablement team in Operating System Group is looking for a Software Development Engineer (SDE) in Sh...
1:datanode中的快,命令ll查看
2:实际上文件在进行上传到hdfs的过程中,...
分类:
系统相关 时间:
2014-07-31 13:22:46
阅读次数:
206
前言:早晨磁盘报警刚清空完tomcat和nginx日志,使用的命令是类似echo "" > show_web-error.log或者> show_web-debug.log清空语句,然后rm -rf 掉一些tar.gz包,空出来30G空间。而且也关闭了tomcat的debug信息。刚刚又接到报警,磁盘100%了。怎么回事??1,进去df -h下,确实100%了,如下所示:[root@localho...
分类:
其他好文 时间:
2014-07-31 09:51:43
阅读次数:
310
shell的种类: sh ?- Bourne shell csh or tcsh - C shell korn - Korn shell bash - GNU Bourne-Again shell 1.最简单的列子 例子 #!/bin/bash ? #?This?is?a?very?simple?example?echo?Hello?World e...
分类:
其他好文 时间:
2014-07-31 00:13:45
阅读次数:
454
vi?lvm_extend.sh
#!/bin/bash
#jk409???2014-7-30
#eg.
#lvm_extend.sh???/dev/sdb?????9.9
#扩展10g
yp=$1
Size=$2
fdisk?${yp}?<<?EOF
n
p
1
t
8e
wq
EOF
partprobe
mkfs.ext4??${yp}1
pv...
分类:
其他好文 时间:
2014-07-30 21:00:15
阅读次数:
245
[dodowolf@fu~]$catfu.sh#!/bin/shLOG_DATE=`date-d"yesterday"+%F`Q_DATE=`date-d"2daysago"+%Y%m%d`Y_DATE=`date-d"yesterday"+%Y%m%d`whilereadlinedo{IP=`echo$line|cut-d""-f1`DATABASE=`echo$line|cut-d""-f2`mysql-uuser-ppasswd-h${IP}-e"setnamesutf8;select1,2,3,4,5..
分类:
其他好文 时间:
2014-07-30 15:02:44
阅读次数:
173
原理shell代码如下:#!/bin/sh
cat../androidsrc|whilereadline
do
ip=$(echo$line|awk‘{print$1}‘)
srcdir=$(echo$line|awk‘{print$2}‘)
destdir=$(echo$line|awk‘{print$3}‘)
user=$(echo$line|awk‘{print$4}‘)
port=$(echo$line|awk‘{print$5}‘)
build=$(echo$line|awk‘{pr..
分类:
其他好文 时间:
2014-07-30 12:30:44
阅读次数:
337
#!/bin/bash
echo?"fdisk?success"
-sed?-i?‘/fdisk.sh/d‘??/etc/rc.d/rc.local
+sed?-i?‘s/fdisk.sh/reboot.sh/‘??/etc/rc.d/rc.local
+?reboot 主要是格式化磁盘,写在 /etc/rc.local 删除不彻底(...
分类:
其他好文 时间:
2014-07-29 16:20:49
阅读次数:
300
首先检查代码中是否有可执行命令?#!/bin/sh 然后 检查post-commit权限 post-commit 脚本文件的权限不对,post-commit 脚本必须有 +x 权限。 chown?svn:svn?post-commit
chmod?+x?post-commit...
分类:
其他好文 时间:
2014-07-29 16:14:59
阅读次数:
201