¡¡ÄúÊÇ·ñÖªµÀ²©¿Í´´×÷Óë UNIX(R) ЯÊÖÇ°ÐУ¿UNIX ÄÚÖÃµÄ Web ºÍÎı¾´¦Àí¹¤¾ßʹÄúÄܹ»·½±ã¿ì½ÝµØ´´½¨²©¿Í¡£Ì½Ë÷һЩÓÃÓڸĽø UNIX ²©¿Í´´×÷¼¼ÄܵıãÀû¼¼ÇÉ¡£
UNIX® ºÍÍøÂ粩¿Í»ò²©¿Í ¾ßÓÐÐí¶à¹²Í¬Ö®´¦¡£³ýÁË×÷Ϊ´ó¶àÊý Web ·þÎñÆ÷µÄ±¾»ú»·¾³ºÍÐí¶à Web ¿ª·¢ÈËÔ±µÄÊ×Ñ¡»·¾³Ö®Í⣬ÓÉÓÚÆäÇ¿´óµÄ Web ºÍÎı¾´¦ÀíÄÜÁ¦£¬UNIX »¹ÊÇÓÃÓÚ´´½¨²©¿ÍµÄÀíÏë»·¾³¡£ÀûÓà UNIX Ëù¹ÌÓеÄÃüÁîÐй¤¾ßºÍÌØÐÔÀ´Ê¹Äú³ÉΪ¸üÓÅÐãµÄ²©¿ÍËùÓÐÕß¡£ÏÂÃæÊÇһЩ°ïÖúÄúʵÏÖ¸ÃÄ¿µÄµÄ¼¼ÇÉ¡£
²»¶ÏÌṩÐÂÏÊÄÚÈÝ
²©¿Í´´×÷µÄ×îÖØÒª¹æÔòÊÇ×öµÃ¾¡¿ÉÄܶࡣ×ÜÌå˼ÏëÔÚÓÚ£¬ÄúµÄ²©¿ÍÓ¦¸Ã¸üÀàËƹö¶¯µÄ×Ô¶¯ÊÕ±¨»úÖ½Ìõ£¬ÉõÖÁ¸üÀàËƵçÊÓ»ÃæµÄÔ˶¯£¬¶ø²»ÊÇÀàËÆ´Ó¿¼¹Å¾®ÖаγöµÄһЩʴ¿ÌƬ¶Ï¡£ËüÓ¦¸ÃʼÖÕ²»¶ÏÔö³¤£¬²¢ÇÒ¶ÁÕßÔÚ·ÃÎÊʱӦ¸Ã»ñµÃÐÂÏʸС£¾ÍÍøÕ¾ÕâÖÖýÌå¶øÑÔ£¬ÓжàÉÙ·ÃÎÊÕßÔÚ»ý¼«µØÔĶÁËüÃÇ£¬²î²»¶à¾ÍÓжàÉÙ·ÃÎÊÕßÔÚ¹Û¿´ ËüÃÇ----·ÃÎÊÁ´½Ó¡¢ÖØмÓÔغͷµ»Ø¡£ÒªÔÚÕâÑùµÄÍøÕ¾ÉÏÈ¡µÃ³É¹¦£¬Äú¾Í±ØÐëÊÊÓ¦ÕâÒ»µã¡£
ËäÈ»Äú²»ÐèҪΪ´Ë¶ø°²×°ÈκÎÌØÊâÈí¼þ£¬µ«¸Ä½øÍøÂ粩¿ÍµÄ×î¿ìËÙºÍ×îÖØÒªµÄ·½·¨ÊÇ£ºÄú±ØÐë²»¶ÏÌí¼ÓÐÂÄÚÈÝ£¡¼ÈʹÄú½ñÌì²Å¿ªÍ¨²©¿Í£¬Ö»ÒªÄú¼á³ÖÿÌì¶ÔËü¸üжà´Î£¬¶ø²»ÊÇÒ»·Å¾ÍÊÇÒ»Äֻ꣬ÓÐÐÄѪÀ´³±Ê±²Å¸üÐÂËü£¬ÄÇôµ½ÖÜÄ©¾Í»áÓиü¶àµÄÈËÔĶÁËüÁË¡£
Õâ¸ö¼¼ÇÉÓë±¾ÎĺóÃæµÄËùÓÐÆäËû¼¼ÇÉÏà¹Ø£¬ÒòΪËüÃǽ«ÏòÄú±íÃ÷ UNIX ϵͳÈçºÎÓÐÖúÓÚ±ÈÒÔÍù¸ü¿ì¸üºÃµØÌṩÐÂÏʵIJ©¿ÍÄÚÈÝ¡£Äú±ØÐëÖªµÀÄúµÄÄÄЩÄÚÈÝ×îÊÜ»¶Ó¡¢ÖªµÀËÕýÔÚÔĶÁËüÒÔ¼°ËûÃÇÀ´×Ժδ¦¡¢Ê¹ÄúµÄÎı¾¸ü¿ì¸üºÃµØ¼ÓÔØ£¬²¢×Ô¶¯»¯ÄúµÄ²©¿Í¸üС£ÏÂÃæÄú½«¼òµ¥½éÉÜһЩ»ùÓÚ UNIX µÄÄÚÈݹÜÀí½â¾ö·½°¸£¬ËüÃÇ¿ÉÄܱÈÄúÒÔÇ°Ò»Ö±ÓÃÀ´ÖÆ×÷²©¿ÍµÄ½â¾ö·½°¸¸üºÃ¡£
²é¿´ÈÕÖ¾
ÈÕÖ¾¾ÍÊÇÄúµÄ»îÁ¦Ö®Ô´¡£ËüÃǽ«¸æËßÄúËÕýÔڲ鿴ÄúµÄ²©¿ÍÒÔ¼°ÓйØλÖᢴÎÊýºÍƵ¶ÈµÄÐÅÏ¢¡£Èç¹ûÄú»ý¼«µØ·¢²¼ÍøÂ粩¿Í£¬ÔòÓ¦¸ÃÖÁÉÙÿÌì¼ì²éÒ»´Î ÈÕÖ¾¡£ÈÕ־ʹÄúÄܹ»¿´µ½ËÕýÔÚÔĶÁÄúµÄ·¢²¼¡¢È·ÇÐÁ˽âËûÃÇÕýÔÚÔĶÁµÄÄÚÈÝÒÔ¼°ËûÃÇÔĶÁµÄʱ¼ä¡£ËùÒÔ£¬ÎªÊ²Ã´ÒªºöÂÔËüÄØ£¿
Äú¿ÉÒÔʹÓÃÃüÁîÐй¤¾ßÀ´´ÓÈÕÖ¾ÌáÈ¡ÓÐÒâÒåµÄÊý¾Ý£¬µ«ÊÇ´æÔÚһЩÌØÊâµÄ UNIX ¹¤¾ß¿ÉÒÔ×Ô¶¯·ÖÎö×îÁ÷ÐиñʽµÄÈÕÖ¾£¬°üÀ¨ Apache Web ·þÎñÆ÷ËùдÈëµÄÈÕÖ¾¡£´ËÀ๤¾ßÖ®Ò»¾ÍÊÇÁ÷ÐеĿª·ÅÔ´´úÂë analog ÃüÁî¡£
¶ÔÊÜ»¶ÓµÄÄÚÈÝ×÷³ö·´Ó¦
ʹÓà analog ÃüÁîÀ´¼ì²éÄúµÄÁ´½Ó²¢²é¿´ÈËÃÇËù·ÃÎʵÄÄÚÈÝ¡£Ê×ÏÈ£¬»ñµÃÒ»¸öÏÔʾͳ¼ÆÐÅÏ¢µÄ³£¹æ±¨¸æ----ÕýÔÚ·¢³ö¶àÉÙ¸öΨһÇëÇó¡¢ÊÇ·ñ´æÔÚÈκÎʧ°ÜµÄÇëÇó¡¢ÕýÔÚΪ¶àÉÙ¸ö²»Í¬µÄÖ÷»ú·þÎñ£¬µÈµÈ£º
´ËÃüÁî²úÉúÀàËÆÓÚÇåµ¥ 1 ËùʾµÄ´úÂë¡£
Çåµ¥ 1. analog ¹¤¾ßµÄʾÀýÊä³ö
Web Server Statistics for BigBlog
Program started at Mon-25-Sep-2006 14:46.
Analyzed requests from Fri-01-Sep-2006 00:01 to Fri-01-Sep-2006 23:59 (1.00 days).
____________________________________________________________________________
General Summary
(Go To: Top: General Summary)
This report contains overall statistics.
Successful requests: 3,400
Average successful requests per day: 3,403
Successful requests for pages: 2,015
Average successful requests for pages per day: 2,016
Failed requests: 3
Redirected requests: 963
Distinct files requested: 101
Distinct hosts served: 950
Data transferred: 65.338 megabytes
Average data transferred per day: 65.429 megabytes
____________________________________________________________________________
This analysis was produced by analog 6.0.
Running time: Less than 1 second.
(Go To: Top: General Summary)
ÒªÌرð×¢Òâ Search Word Report£¨ÆäÖÐÏÔʾÁË×îÁ÷ÐеIJéѯ¹Ø¼ü´ÊºÍËüÃDZ»²éѯµÄ´ÎÊý£©ºÍ Directory Report£¨ÆäÖÐÏÔʾÄúÕ¾µãÉÏ×îÊÜ»¶ÓµÄĿ¼£©¡££¨²é¿´¶ÁÕßµ±Ç°¶ÔÄÄЩ´æµµµÄ²©¿ÍÌõÄ¿¸ÐÐËȤʼÖÕÊǸöºÃÖ÷Òâ¡££©×îºó£¬Request Report ÏÔʾÁËÕ¾µãÉϱ»ÇëÇó´ÎÊý×î¶àµÄÎļþ¡£ÄúµÄ²©¿Í»Õ±êºÍÈκξ³£ÔÚÕû¸öÕ¾µãÖгöÏÖµÄͼÐι̶¨ÔÚ¶¥²¿¸½½ü£¬µ«ÊÇͨ¹ý²é¿´Êµ¼ÊÄÚÈÝÎļþ£¨Èç .html Îļþ£©£¬Äú¿ÉÒÔÇå³þÁ˽âÄÄЩҳÃæ»ò´æµµµÄ²©¿ÍÌõÄ¿×îÊܶÁÕߵĻ¶Ó¡£
¿ÉÄÜ»á³öÏÖÿÌì»òÖÜÆÚÐԵĸ߷壬ÄúÓ¦¸Ã¶Ô´Ë×÷³ö·´Ó¦¡£È»¶ø£¬³¤Ô¶¿¼Âdz¤ÆÚÇ÷ÊÆʼÖÕÊÇÃ÷Öǵġ£Èç¹ûÒªÔڴ浵Ŀ¼Öб£ÁôÿÌìµÄÈÕÖ¾£¬ÕâÊǺÜÈÝÒ××öµ½µÄ¡£Ö»ÐèÆ´½ÓËüÃÇ£¬È»ºó½«ËüÃÇÈ«¶¼·¢Ë͵½ analog ÒÔ½øÐÐÒ»´ÎÐÔ´¦Àí¡£Õâ¿ÉÒÔÿÖÜ¡¢Ã¿ÔÂÉõÖÁÿÄê½øÐÐÒ»´ÎÒÔ¸ú×ÙÇ÷ÊÆ¡£Ê¹Óà zcat£¨ÔÚÓÐЩϵͳÉÏÃûΪ gzcat£©À´Í¬Ê±½âѹËõºÍÆ´½ÓÈκÎѹËõµÄÈÕÖ¾¡£ÀýÈ磬ΪÁË»ñµÃÓÐ¹Ø 2006 Äê 9 ÔµÄËùÓÐÈÕÖ¾µÄÍêÕû±¨¸æ£¬¿ÉÒÔʹÓÃÒÔÏÂÃüÁ
trangod ÓÚ 2006-11-28 00:35:57·¢±í:
×Ô¶¯»¯¸üÐÂ
ºÜÉÙÓв©¿ÍËùÓÐÕßÖ±½ÓÔÚÔÚÏßÒ³Ãæ±¾ÉíÖ®ÉÏÖÆ×÷²©¿Í¡£´ó¶àÊý¹¤×÷¶¼ÊÇÔÚ±¾µØ¸±±¾ÉÏÍê³ÉµÄ£¬ËûÃÇÊ×ÏÈÔÚ±¾µØ¸±±¾ÉϲÝÄâºÍÌáÁ¶ÐÂÌõÄ¿¡£È»ºó£¬µ±Ð嵀 index.html ÎļþΪÔÚÏß ×¼±¸¾ÍÐ÷ʱ£¬²©¿ÍËùÓÐÕß½«¸ÃÎļþÉÏÔص½³ÐÔØʵ¼ÊÕ¾µãµÄ·þÎñÆ÷¡£
¸Ã¹ý³Ì¿ÉÄÜÒª»¨ 30 Ãëµ½Ò»·ÖÖÓµÄÇ¿ÖÆÐÔ×¢Òâʱ¼ä£¬Ôڴ˹ý³ÌÖУ¬²©¿ÍËùÓÐÕß´ò¿ªÎļþ´«ÊäÐÒé (FTP) Á¬½Ó¡¢¼üÈëÃÜÂë¡¢Çл»µ½±¾µØÍøÂ粩¿Í¸ùĿ¼¡¢Çл»µ½·þÎñÆ÷¸ùĿ¼¡¢ÉÏ´«¸ÃÎļþ£¬È»ºó×¢Ïú£¨ÓйØʾÀýÇë²Î¼ûÇåµ¥ 3£©¡£
¿ÉÒÔÏëÏ󣬴˹ý³ÌºÜÈÝÒ׳öÏÖÓû§´íÎó¡£Èç¹ûÄúÖ¾ÔÚ³ÉΪÿÌìÓµÓÐ 10 ¸öÓÅÐã¸üеĴóºà¼¶¾«Ó¢²©¿ÍËùÓÐÕߣ¬Ôò´ËÉÏ´«¹ý³ÌÿÌì¾ÍÒª»¨È¥ÄúÕûÕûÎå·ÖÖÓʱ¼ä----»òÕß˵ÿÄê×ܹ²³¬¹ý 30 ¸öСʱ£¡ÄÇÊÇÏ൱¶àµÄʱ¼ä£¬Ô±¾¿ÉÒÔ¸üºÃµØ»¨ÔÚÔĶÁ developerWorks ÎÄÕÂÀ´¼ÓÇ¿ÄúµÄÐÅÏ¢¼¼Êõ (IT) ±¾ÁìÉÏ¡£
Çåµ¥ 3. ÍøÂ粩¿Í¸ùÒ³µÄÊÖ¶¯¸üÐÂ
331 User joe_blogger okay, need password.
Password: secret
230 You are user #1 of 2 simultaneous users allowed.
230 Logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> lcd ~/blog
Local directory now /home/joe/blog
ftp> cd public_html
250 "/usr/www/users/joe_blogger" is new cwd.
ftp> put index.html
local: index.html remote: index.html
200 PORT command successful.
150 Opening BINARY mode data connection.
226 Transfer completed.
ftp> bye
221 Goodbye.
develbox$
Íê³É´ËÈÎÎñµÄÒ»ÖÖ¸üºÃ·½·¨ÊÇʹÓà Expect ÓïÑÔ£¬ËüÊÇΪ½Å±¾½»»¥Ê½»á»°¶øÉè¼ÆµÄ£¨Çë²Î¼û²Î¿¼×ÊÁÏ£©¡£¶ÔÓÚͨ¹ý FTP À´È˹¤¸üÐÂÕ¾µãµÄ²©¿ÍËùÓÐÕߣ¬´´½¨×Ô¶¯»¯µÄ¸üнű¾ÊǺÜ×ÔÈ»µÄ·½·¨¡£Çåµ¥ 4 ÏÔʾÁËÒ»¸ö×Ô¶¯»¯Çåµ¥ 3 ËùʾµÄ»á»°µÄʾÀý¡£
Çåµ¥ 4. ×Ô¶¯»¯ÍøÂ粩¿Í¸üÐ嵀 Expect ³ÌÐò
#!/usr/bin/expect
# update a weblog index page
# puts ~/blog/index.html in remote ~/public_html/
exp_version -exit 5.0
if $argc!=0 {
send_user "usage: bloggit\n"
exit
}
set timeout 60
log_user 0
expect "Name*:"
send "joe_blogger\r"
expect "Password:"
send "secret\r"
expect "ftp>"
send "lcd ~/blog/\r"
expect "ftp>"
send "cd public_html/\r"
expect "ftp>"
send "put index.html\r"
expect "226*ftp>"
send "bye\r"
send_user "blogged it.\n"
close
ÏÖÔÚ£¬µ±Äú×¼±¸½«Ä³¸ö¸üÐÂÖÃÓÚÔÚÏßʱ£¬Ëù»¨µÄʱ¼äÒªÉٵöࣺ
$ bloggit
blogged it.
$
ʹÓÃÄÚÈݹÜÀíϵͳ
¾Í¿ª·¢²¢ÍƳö²úÆ·¶øÑÔ£¬UNIX ÈËÇãÏòÓÚ×ÔÐÐÆäÊ¡£µ«Í¬ÑùµØ£¬ËûÃÇÒ²ºÜÀÁ¶è£¬Èç¹ûÒѾ´æÔÚÊÊÓõĽâ¾ö·½°¸£¬ËûÃÇÒ²²»»á·ÑÐĵØÁí±Ùõ辶£»Ì«¶àµÄÐÂ˼Ï뻹ÔڵȴýÐγɡ£
ÔÚ²©¿ÍµÄÔçÆÚÄê´ú£¬×î³É¹¦µÄÍøÂ粩¿ÍÊÇÊÖ¹¤±àÂëµÄ HTML----Èç½ñÒѺܲ»³£¼ûÁË¡£ÏÖÔÚ£¬´ó¶àÊý²©¿Í¶¼ÊÇÓÉ CMS Ìṩ֧³ÖµÄÊý¾Ý¿âÇý¶¯¡¢ÊÖ¹¤ÅäÖõÄÕ¾µã¡£
Èç¹û˵´æÔÚÍøÂ粩¿ÍÓ¦ÓóÌÐò£¬ÄǾÍÒ»¶¨ÊÇ CMS£¬ËüÄÜΪÄúÌṩ´óÁ¿ÄÑÓÚͨ¹ý±à³ÌÀ´ÊµÏֵıر¸²©¿ÍÌØÐÔ----·ÖÀàÅÅÐò¡¢°´ÈÕÆÚ¡¢Àà±ðºÍýÌåÀàÐÍ´æµµ¡¢Ð×÷ÕÊ»§±ãÀûÐÔ¡¢²¼¾ÖÄ£°åºÍ¸ñʽ»¯¡¢±ê×¼»ò¹ö¶¯Í¼Ïñ»òÖ÷Ì⣬ÒÔ¼°¸÷ÖÖ¸ñʽºÍÇþµÀ£¨Èç RSS£©µÄÄÚÈÝ¿ÉÓÃÐÔ¡£
´æÔÚÌ«¶àµÄ CMS£¬ÉõÖÁÎÞ·¨³¢ÊÔÁгöËüÃǵÄÍêÕûÇåµ¥----ÆäÖÐÓÐÊý°Ù¸öÊǵ±Ç°ÕýÔÚʹÓõģ¬»¹ÓÐһЩÊÇÔÚ developerWorks ÉϵÄÆäËûµØ·½ÏêϸÃèÊöµÄ¡£µ«ÊÇ£¬ÁоٳöÆäÖÐһЩÔÚ UNIX ÉϹ¤×÷µÃºÜºÃ²¢ÇÒ¿ÉÒÔÅäÖÃÀ´¿ª·¢ºÍÔËÐÐÍøÂ粩¿ÍµÄ½ÏºÃºÍ½ÏÁ÷ÐеĿª·ÅÔ´´úÂë CMS ÊÇÖµµÃµÄ¡£±í 1 ÁгöÁËÕâЩ CMS£¬µ«ÊÇ»¹ÓÐÆäËûÐí¶àûÓÐÁгö£¬Òò´Ë¿Ï¶¨´æÔÚÂú×ãÄúÌض¨ÐèÒªµÄ½â¾ö·½°¸¡£
±í 1. ÓÃÓÚ UNIX µÄÁ÷Ðпª·ÅÔ´´úÂë CMS
CMS ÃèÊö
Blosxom Blosxom ÊÇÒ»¸ö»ùÓÚ Perl µÄÍøÂ粩¿Í·¢²¼ÏµÍ³£¬ÆäÌØÉ«ÊDzå¼þÌåϵ½á¹¹ºÍÐéÄâĿ¼¡£
Drupal Drupal ÊÇÒ»¸öÄ£¿é»¯µÄ CMS£¬ÓÃÓÚͨ¹ýÆÀÂÛºÍ Trackback À´¹¹½¨ÍøÂ粩¿Í¡£
Textpattern Textpattern ÊÇÒ»¸öÎĵµ¹ÜÀíϵͳ£¬²¢×ÅÑÛÓÚ¾«ÃÀµÄ Web ÅŰ棻ËüʹÓà PHP V4.3 »ò¸ü¸ß°æ±¾ºÍ MySQL V3.23 »ò¸ü¸ß°æ±¾¡£
WordPress ËüÊÇ×îÊÜ»¶ÓµÄ¿ª·ÅÔ´´úÂë CMS °üÖ®Ò»£¬ÓÃÓÚ UNIX Éϵķ¢²¼¡£
×ܽá
UNIX »·¾³ÕæÕýÊÇÓÃÓÚ²©¿Í´´×÷µÄÌìÈ»»·¾³¡£´Ó Web ÓѺõĻù´¡ÉèÊ©µ½Ç¿´óµÄÃüÁîÐй¤¾ß£¬ÆäÖÐÓдóÁ¿µÄÌØÐÔ¿É°ïÖúÄú¸Ä±äÒ»ÉúµÄ²©¿Í´´×÷ÃüÔË¡£±¾ÎÄÌṩÁËһЩ¿ÉÒÔʹÓà UNIX À´Ê¹ÄúµÄ²©¿Í´´×÷½øÐеøüºÃ¸ü¿ìµÄ·½·¨¡£
trangod ÓÚ 2006-11-28 00:35:05·¢±í:
ÖªµÀÄúµÄ¶ÁÕßÊÇË
ÖªµÀÄúµÄ¶ÁÕßÀ´×Ժδ¦¿ÉÄܺÜÓаïÖú----ËùÔÚµÄÓò¡¢IP µØÖ·ºÍ¹ú¼Ò¡£ÈôÒª²éÕÒÍøÂ粩¿ÍÖеÄËùÓÐÖ÷»ú£¬Äú¿ÉÒÔʹÓü¸¸öÃüÁîÐй¤¾ßÀ´»ñµÃÓйØÿ¸öÖ÷»úÃû³ÆµÄ¼òÒª±¨¸æ¡£Èç¹ûʹÓà Apache ·ç¸ñµÄÈÕÖ¾¼Ç¼£¬ÔòÇëÇó IP µØÖ·ÊÇÿÐеĵÚÒ»¸ö×ֶΣº
$ for i in `cut -d " " -f1 access.log | sort -u | head`; \
Äú¿ÉÒÔ»ùÓÚ web/logs/ Ŀ¼ÖÐËù¾ßÓеÄѹËõÈÕÖ¾À´Êä³ö·ÃÎʹýÄúµÄ /blog Ŀ¼µÄΨһÓò×ÜÊý£º
$ zcat web/logs/* | fgrep "/blog" | cut -d " " -f1 | sort -u | wc -l
ÖªµÀËûÃÇÀ´×Ժδ¦
Èç¹ûij¸öÕ¾µãÔÚÏòÄúµÄ²©¿Í·¢ËÍ´óÁ¿¶ÁÕߣ¬ÄúÐèÒª¶ÔÆä½øÐÐÈ·ÈÏ¡£ÕâÒâζ×ÅÄúÓ¦¸ÃÃÜÇÐ×¢Òâ referrer----°üº¬Ö¸ÏòÄúµÄÒ³ÃæÁ´½Ó²¢³öÏÖÔÚ±êÍ·ÖÐµÄ URL¡£¸ÃÊý¾Ý±£´æÔÚÄúµÄÈÕÖ¾ÖУ¬Äú¿ÉÒÔʹÓà analog À´ÌáÈ¡Ëü¡£analog ¹¤¾ßÁгö Referrer Report ÖеÄËùÓÐ referrer£¬ÈçÇåµ¥ 2 Ëùʾ¡£¿ÉÒÔʹÓà +f ±êÖ¾À´ÆôÓøñ¨¸æ¡£
Çåµ¥ 2. À´×Ô Referrer Report Ò³ÃæµÄʾÀý
Web Server Statistics for BigBlog
Referrer Report
Report: Organization Report: Referrer Report: Search Word Report: Operating System
Report: Status Code Report: File Size Report: File Type Report: Directory Report:
Request Report)
This report lists the referrers (where people followed links from, or pages which
included this site's images).
Listing referring URLs with at least 20 requests, sorted by the number of requests.
reqs: URL
----: ---
530: [not listed: 485 URLs]
________________________________________________________________________________
»¹¿ÉÒÔÌø¹ý¶Ô±¨¸æÈí¼þµÄʹÓöøÖ±½Ó´ÓÃüÁîÐлñµÃ referrer¡£ÔÚ Apache ·ç¸ñµÄÈÕÖ¾ÖУ¬referrer °üº¬ÔÚË«ÒýºÅÖУ¬²¢¸úÔÚ IP µØÖ·¡¢ÈÕÆÚºÍʱ¼äÒÔ¼°Êµ¼ÊÇëÇó£¨Ò²°üº¬ÔÚÒýºÅÖУ©ºóÃæ¡£¿ÉÒÔʹÓà awk À´ÌáÈ¡ referrer£»ÔÚʹÓÃÒ»¸öË«ÒýºÅ×Ö·û×÷Ϊ×ֶηָô·ûµÄÇé¿öÏ£¬ËüÃÇÊÇÿÐеĵÚËĸö×ֶΡ£ÓÉÓÚÔÚÇëÇóûÓÐÒýÓà URL ʱ£¬Apache ½«Ð´ÈëÒ»¸öÁ¬×Ö·û£¬Òò´Ë¿ÉÒÔ½áºÏʹÓà grep ÃüÁîºÍ -v Ñ¡ÏîÀ´ºöÂÔÄÇЩÐС£×÷Ϊ×îºóÒ»¸ö¼¼ÇÉ£¬¿ÉÒÔ°´Î¨Ò» referrer µÄÊÜ»¶Ó³Ì¶ÈÀ´ÅÅÐò£º
$ awk ' BEGIN { FS="\""}; {print $4}' log.daily|grep -v "^-$"|sort|uniq -c|sort -r
Ô¤ÏÈÉèÖÃͼÏñ´óС
³¬Îı¾±ê¼ÇÓïÑÔ (HTML) ±ê¼Ç µÄ HEIGHT ºÍ WIDTH ÊôÐԷdz£ÖØÒª¡£ÕâЩ²ÎÊýÖ¸¶¨¸ø¶¨Í¼ÏñµÄ´óС¡£µ±ÕâЩ²ÎÊý´æÔÚʱ£¬´ó¶àÊýä¯ÀÀÆ÷¶¼»áÔÚ¼ÓÔØͼÏñ֮ǰ£¬ÔÚ³ÊÏÖÒ³ÃæµÄ´°¿ÚÖÐΪͼÏñÌÚ³ö¿Õ¼ä¡£Èç¹ûûÓÐÕâЩ±ê¼Ç£¬Ôò±ØÐëÔÚͼÏñÏÂÔØÍê³ÉÒԺ󣬲ŻáÏÔʾͼÏñÖÜΧµÄÎı¾¡£
ËùÒÔ£¬µ±ÄúÔÚ²©¿ÍÖзÅÖÃͼÏñʱ£¬ÔÚ ±ê¼ÇÖаüÀ¨ÕâЩ²ÎÊýÊÇÓÐÀûµÄ£¬ÓÈÆäÊÇÔÚµ¥¸öÒ³ÃæÉÏ¿ªÊ¼ÓдóÁ¿Í¼ÏñµÄʱºò£¬ÒòΪÕâÑù¿ÉÒÔÏÔÖø¸ÄÉƲ©¿ÍÒ³ÃæµÄ¼ÓÔØ¡£·ÃÎÊÕß½«ÄÜÔÚÒ³Ã濪ʼ¼ÓÔØʱ¾Í¿ªÊ¼ÔĶÁ£¬¶ø²»±ØµÈ´ýÕû¸öÒ³Ãæ¼°ÆäËùÓÐͼÏñ´«Êäµ½±¾µØ¡£
µ«ÊÇ£¬Ã¿´ÎʹÓÃͼÏñ²¢½«ËüÃÇ·ÅÔÚ ±ê¼ÇÖÐʱ£¬¶¼±ØÐëÈ·¶¨¾«È·µÄ HEIGHT ºÍ WIDTH Öµ£¬Õâ±¾Éí¾ÍÊǼþ¿Ö²ÀµÄÂé·³ÊÂÇé¡£ÐÒÔ˵ÄÊÇ£¬´æÔÚÒ»¸ö¹¤¾ß¿ÉÒÔΪÄú×Ô¶¯Ö´ÐÐÕû¸öÈÎÎñ¡£imgsizer ʵÓóÌÐò£¨Çë²Î¼û²Î¿¼×ÊÁÏ£©¶ÁÈ¡ÄúÌṩ¸øËüµÄÈκΠ.html Îļþ£¬¼ì²éÄÇЩÎļþÖÐËùÒýÓõÄËùÓÐԴͼÏñ£¬È·¶¨ËüÃǵĸ߶ȺͿí¶È£¬²¢ÔÚ¸ø¶¨ÎļþËù°üº¬µÄ ±ê¼ÇÖÐдÈëÕýÈ·µÄÖµ£º
$ imgsizer index.html
¾ÍÕâÑù¼òµ¥----Äú²»±Ø¼ÓÔØÈκÎͼÏñ»ò¶ÔËüÃÇ×öÆäËûÈκÎÊÂÇé¡£ÔÚ imgsizer Ìí¼ÓÕâЩ±ê¼ÇÒÔºó£¬Äú½«¶ÔÒ³Ãæ¼ÓÔØËٶȵÄÌá¸ß·ù¶È¸Ðµ½·Ç³£³Ô¾ª¡£ºÜÉÙÓв©¿ÍËùÓÐÕßʹÓÃÁË´ËÏî¼òµ¥¼¼Êõ£¬µ«ËüÊǶÁÕß½«»á·Ç³£ÐÀÉ͵ļ¼Êõ¡£