目前分類:未分類文章 (79)

瀏覽方式: 標題列表 簡短摘要

http://lincolnloop.com/blog/tracking-application-response-time-nginx/
https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a-reverse-proxy-for-apache

#vi /etc/nginx/sites-available/default
location / {
    proxy_set_header X-Real-IP $remote_addr;

文章標籤

slinbody 發表在 痞客邦 留言(0) 人氣()

http://weizhifeng.net/nginx-proxy-cache.html
很棒的解說
Nginx效能解析


以apache為後端,Nginx為前端

文章標籤

slinbody 發表在 痞客邦 留言(0) 人氣()

http://lincolnloop.com/blog/tracking-application-response-time-nginx/
https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a-reverse-proxy-for-apache

#vi /etc/nginx/sites-available/default
location / {
    proxy_set_header X-Real-IP $remote_addr;

文章標籤

slinbody 發表在 痞客邦 留言(0) 人氣()

#crontab -e
30 20 8-14,22-28 * * test $(date +%u) -eq 1 && /usr/local/bin/backup.sh >> /var/log/backup.log 2>&1

date +%u :顯示一週的第幾天

文章標籤

slinbody 發表在 痞客邦 留言(0) 人氣()

@Echo Off
echo | set /p=網路連現中.
:CheckNet
echo | set /p=.
ping -n 1 -w 1000 192.168.1.235 |find /I "Reply"

slinbody 發表在 痞客邦 留言(0) 人氣()

How to check if SSL v2 is enabled using openssl
http://www.aip.im/2012/04/how-to-check-if-ssl-v2-is-enabled-using-openssl/
OpenSSL Command-Line HOWTO
https://www.madboa.com/geek/openssl/#intro-version
openssl 指令 command line

文章標籤

slinbody 發表在 痞客邦 留言(0) 人氣()

#vi ~/.vimrc
set tabstop=4 shiftwidth=4 softtabstop=4 expandtab
將tab值設定為4個空白
非在4個倍數的會自動調整
syntax on

文章標籤

slinbody 發表在 痞客邦 留言(0) 人氣()

#!/bin/sh

usage() {
     echo "$(basename $0) <on|off>"
}

文章標籤

slinbody 發表在 痞客邦 留言(0) 人氣()

#!/bin/sh

TEST () {
echo -n `date +%Y.%m.%d`" "`date +%H:%M:%S`" "
echo -n `curl 58.258.118.198 --connect-timeout 2 -w '%{response_code}' -so /dev/null`" "

文章標籤

slinbody 發表在 痞客邦 留言(0) 人氣()

http://www.nginxtips.com/nginx-location-directive/
http://nginx.org/en/docs/http/server_names.html
http://nginx.com/resources/admin-guide/web-server/


slinbody 發表在 痞客邦 留言(0) 人氣()

中文解釋show status;
有一個腳本可以測試效能
http://homeserver.com.tw/2011/04/07/mysql-show-status/

show status和show global status不同

slinbody 發表在 痞客邦 留言(0) 人氣()

參考1
參考2

EC2掛上EBS可以直接掛
不用關機.....太酷了

slinbody 發表在 痞客邦 留言(0) 人氣()

建憑證CA
http://datacenteroverlords.com/2012/03/01/creating-your-own-ssl-certificate-authority/
http://blog.xuite.net/zack_pan/blog/59878236

nginx上設定SSL

文章標籤

slinbody 發表在 痞客邦 留言(0) 人氣()

參考AWS CLI安裝
參考Stop instance

參考Start instance
參考綁Elastic IP
自動化腳本

slinbody 發表在 痞客邦 留言(0) 人氣()

https://github.com/hannob/bashcheck

 

#!/bin/bash

warn() {

slinbody 發表在 痞客邦 留言(0) 人氣()

http://blog.cloudlytics.com/decoding-elb-log-entries/


slinbody 發表在 痞客邦 留言(0) 人氣()

http://www.howtoforge.com/installing-powerdns-with-mysql-backend-and-poweradmin-on-debian-squeeze

 

poweradmin
https://github.com/poweradmin/poweradmin/wiki/Installation
http://www.poweradmin.org/

slinbody 發表在 痞客邦 留言(0) 人氣()

參考:
apache RewriteRule RewriteCond介紹
Rewrite Flag介紹
#a2enmod rewrite 

#service apache2 restart

slinbody 發表在 痞客邦 留言(0) 人氣()

參考
$ curl -w "TCP handshake: %{time_connect}, SSL handshake: %{time_appconnect}\n" -so /dev/null https://www.alipay.com


slinbody 發表在 痞客邦 留言(0) 人氣()

參考

偵測到錯誤會往下個upsteam server送
upstream serverA {
 server 168.95.1.1:80;
 server 168.95.1.2:80;

slinbody 發表在 痞客邦 留言(0) 人氣()