ÔÚ´óÐÍÍøÕ¾ÖÐÎÒÃÇʱ³£ÒªÍ³¼ÆÍøÕ¾µÄ·ÃÎÊÈËÊý£¬¸ù¾ÝÍøÕ¾µÄ·ÃÎÊÈËÊýµ÷½Ú»º´æ²ßÂÔ·ÃÎʲßÂÔ¡£
1.н¨ÍøÕ¾£¬ÔÚÍøÕ¾µÄÈ«¾ÖÓ¦ÓóÌÐòÀàÖеÄApplication_Start()·½·¨Öн«ÍøÕ¾µÄ·ÃÎÊÈËÊý¼Ç¼µ½¾²Ì¬±äÁ¿ÖУ¬´úÂëÈçÏ£º
public static int _totalcount;
void Application_Start(object sender, EventArgs e)
{
// ÔÚÓ¦ÓóÌÐòÆô¶¯Ê±ÔËÐеĴúÂë
_totalcount = 0;
}
2.ÔÚÈ«¾ÖÓ¦ÓÃÀàÖеÄsession_Start()·½·¨ÖУ¬½²¼Ç¼·ÃÎÊÈËÊýÀÛ¼Ó1£º
void Session_Start(object sender, EventArgs e)
{
// ÔÚлỰÆô¶¯Ê±ÔËÐеĴúÂë
Application.Lock();
_totalcount++;
Application.UnLock();
}
3.ÔÚ²âÊÔÒ³ÃæÖеÄPage_loadʼþ´¦Àí³ÌÐòÖÐÌí¼Ó·ÃÎÊÕ¾µãµÄ×ÜÈËÊý£º
protected void Page_Load(object sender, EventArgs e)
{
this.Response.Write(string.Format("µ±ÆÚÍøÕ¾·ÃÎÊÈËÊýΪ£º {0}", Global._totalcount));
}
ÎÄÕÂÀ´Ô´£ºËï¼ÑÃôµÄ²©¿Í
×¢£ºÏà¹ØÍøÕ¾½¨Éè¼¼ÇÉÔĶÁÇëÒƲ½µ½½¨Õ¾½Ì³ÌƵµÀ¡£
ÍƼöÐÅÏ¢
- ¹¹½¨¸ß¿ÉÓú͵¯ÐÔÉìËõµÄKV´æ´¢ÏµÍ³
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨¶þ£©
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨Ò»£©
- Ðì¹úÏ飺΢²©ÊÇ·ñ»á²ÎÓëÍøÕ¾ÅÅÃû
- ApacheÔÚ±¾µØ½¨Á¢·ºÓòÃûÐéÄâÖ÷»ú¼ò·¨
- ÈçºÎ½øÐÐÍøÕ¾Õï¶Ï ΪÍøÕ¾½øÐÐÆÀ·Ö
- Ò»¸ö³É¹¦µÄÕ¾³¤Ó¦¸Ã¾ß±¸µÄËØÖÊ
- Ò»Ìõ΢²©Òý·¢µÄ·ÖÎö£ºÈçºÎÈÃ΢²©µÃµ½¹ã·º´«²¥
- ÈçºÎÈÃÒ»¸öÍøÕ¾ÓÐÇ¿´óÉúÃüÁ¦
- פ×ãIDCÃż÷³Ö±Ò¹ÛÍû Õ¾³¤Ñ¡¹º¿Õ¼ä³É¡°¼èÄѵľö¶¨¡±£¿
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
ÆÀÂÛ