05 2015 档案
摘要:2015/05/22 11:10:42 [error] 25164#0: *24170881 upstream sent too big header while reading response header from upstream, client: 58.247.43.226, server...
阅读全文
摘要:1,下面有这个例子vi a.txt1 2 3vi a.shecho $1 $2 $3vi c.shaa=`cat a.txt`./a.sh $aash c.sh 1 2 3注意:红色$aa没有加双引号,如果把$aa加上双引号那么$aa就会是一个整体了,所以在这里我们不加双引号,因为默认IFS是以空格...
阅读全文
摘要:1, $*与$@区别cat a.sh#!/bin/bashfor i in $* #这里换成$@也是一样的结果doecho $idonesh a.sh 1 '2 3'123vi a.shfor i in "$*"...sh a.sh 1 '2 3'1 2 3vi a.shfor i in "$@"....
阅读全文
摘要:1 [root@zenghui expect]# cat ssh_dsa.exp 2 #!/usr/bin/expect 3 set ip [lindex $argv 0] 4 set pass [lindex $argv 1] 5 set port [lindex $argv 2] 6 set ...
阅读全文
摘要:今天遇到一个问题:nginx反向代理tomcatlocattion / {proxy_passhttp://192.168.1.12:11080/iloadsdev-web/;proxy_set_headerHost$host;proxy_set_headerRemote_Addr$remote_a...
阅读全文
摘要:1 #!/bin/bash 2 TEMP=`getopt -o hm: --long aai:,mai: -n 'getopts.sh' -- "$@"` 3 eval set -- "$TEMP" 4 while true 5 do 6 case "$1" in 7 -h|--aai...
阅读全文