原创 nginx防止CDN大量回源
通過限制每個IP的連接數量 防止大量回源卡死服務器 這個模塊用來限制單個IP的請求數。並非所有的連接都被計數。只有在服務器處理了請求並且已經讀取了整個請求頭時,連接才被計數。 Syntax: limit_conn zone number
原创 lua示例代碼
function get_client_ip() local headers=ngx.req.get_headers() local ip=headers["X-REAL-IP"] or headers["X_FORWAR
原创 Table Configuration scheme.table matched more than one table
https://blog.csdn.net/qq_40233736/article/details/83314596
原创 複雜的nginx重寫配置記錄
server { access_log /app/nginx/logs/hao.example.com.log; error_log /app/nginx/logs/hao.example.com_err
原创 全國網絡速度測試
https://www.17ce.com/
原创 laravel架構分層
https://oomusou.io/laravel/architecture/
原创 docker學習資料
https://yeasy.gitbooks.io/docker_practice/image/commit.html 如果 docker 版本已經在 1.3 以上了, 那麼可以用 docker exec 這個命令: docker ex
原创 mysql查詢各個數據庫大小
//各個數據大小 數據單位M select table_schema ,round(sum(data_length/1024/1024),2) as size from information_schema.tables group by
原创 shadowsocks安裝配置
基於pip安裝 ~]# yum install python-setuptools && easy_install pip ~]# pip install shadowsocks 安裝後服務端程序爲ssserver,客戶端程
原创 ssh 免密碼登錄文件權限問題
CentOS 6.3系統下,用戶user的home目錄:/home/user的權限變成了777,造成不能正常登陸SSH,報如下錯誤:Permission denied (publickey,gssapi-with-mic SSH對公鑰、私
原创 nginx lua與go的ab壓力測試hello world
測試機器 4核8G服務器 ab運行在內網另外一臺服務器上面 nginx lua代碼 4個worker進程 server { listen 80; server_name 10.10.155.58; root
原创 shell 打包代碼
cd publishpackage_code(){ rm -rf $1 svn export http://10.10.3.66/svn/dev/yijidangqian/proj_y_server/$1 rm -rf $
原创 shell 安裝腳本
read -p '輸入登錄服務器端口號:' portecho $port;