原创 GDB 調試命令 一

1.complileGCC: gcc -Wall -o2 -g  file.cpp MAKEFILE: CFLAGS = -Wall -o2 -g configure: ./configure CFLAGS="-Wall -o2 -g"

原创 linux Apache2.0.64 安裝,re_write和proxy模塊的加載

1. 下載 2. configure&make 3.make install  安裝順利後,在/usr/local/apache2/下是安裝好的apache。 啓動: bin/apachectl -k start ps -ef|grep

原创 Linux 下的Debug - 內核轉儲(core dump)

1.sysctl -a|grep core kernel.core_uses_pid = 1 kernel.core_pattern = core kernel.core_pipe_limit = 0 2.ulimit -c 1 ulim

原创 rapidxml的簡單封裝

DALXmlFile.h: #ifndef DALXMLFILE_H_INCLUDED #define DALXMLFILE_H_INCLUDED #include "rapidxml.hpp" #include "rapidxml_

原创 nginx的vhost配置

server {     listen 80;     server_name 127.0.0.1;     root /home/wwwroot/test;     index index.php index.html index.ht

原创 Nginx 的ngx_http_phases

typedef enum { //http頭接收完     NGX_HTTP_POST_READ_PHASE = 0, //URL rewrite,在查詢URI之前    NGX_HTTP_SERVER_REWRITE_PHASE, //

原创 設計模式之解釋器(C++實例代碼)

#include <iostream>#include <string> using namespace std; class numContext{public:    void show(int val)    {        co

原创 PHP幾個函數

  PHP中global,$GLOBALS的比較   PHP的析構函數的細節 PHP幾個函數   2013-09-26 09:19:43|  分類: 默認分類 |  標籤: |字號大中小 訂閱   1、mixe

原创 PHP中global,$GLOBALS的比較

一直對這兩個變量比較迷惑,今天寫了一個程序,測試了一下,總算明白了。     代碼: <?php $GLOBALS['test'] = "i am valid.";function testFun1()

原创 linux下文件句柄參數的調整

相關參數: /etc/security/limit.conf user   soft    nofile    2000000 user   hard    nofile    2000000 此值和fs.nr_open有關,設置不能超過

原创 LVS不能轉發網絡包的一種解決方法

      LVS在使用tunl方式時,在請求的包的長度超過1480時,不能轉發網絡包。            修改eth的參數:generic-receive-offload=off,系統默認on。  

原创 Linux 假死現象的一種原因

   Linux假死,可理解爲能ping通,但是登陸不了,也有是系統panic導致。這裏遇到是第一種。能ping通服務器,但是ssh登錄不了。機房接顯示器可以登錄,太幸運了,不是黑屏。        經查

原创 TIME_WAIT and CLOSE_WAIT

linux相關參數調整:   net.ipv4.tcp_syncookies = 1 表示開啓SYN Cookies。當出現SYN等待隊列溢出時,啓用cookies來處理,可防範少量SYN攻擊,默認爲0,表示關閉;   net.ipv

原创 Netbean, xdebug 安裝問題解決

  官網下載xdebug,安裝後,重啓apache,通過phpinfo總是找不到xdebug,安裝不成功,後查找資料,發現是xdebug的版本問題。     zend_extension="D:/AppS

原创 Suse中INIT : no more processes left.死機解決方法

Suse中遠程reboot和shutdown服務器時,不能成功,關不了機。          接終端顯示:                      run level 6