linux ¹ÜµÀѧϰ
¹ÜµÀÊÇLinuxÖкÜÖØÒªµÄÒ»ÖÖͨÐÅ·½Ê½,ÊÇ°ÑÒ»¸ö³ÌÐòµÄÊä³öÖ±½ÓÁ¬½Óµ½ÁíÒ»¸ö³ÌÐòµÄÊäÈë,³£ËµµÄ¹ÜµÀ¶àÊÇÖ¸ÎÞÃû¹ÜµÀ,ÎÞÃû¹ÜµÀÖ»ÄÜÓÃÓÚ¾ßÓÐÇ×Ôµ¹ØϵµÄ½ø³ÌÖ®¼ä£¬ÕâÊÇËüÓëÓÐÃû¹ÜµÀµÄ×î´óÇø±ð¡£
ÓÐÃû¹ÜµÀ½Ðnamed pipe»òÕßFIFO(ÏȽøÏȳö)£¬¿ÉÒÔÓú¯Êýmkfifo()´´½¨¡£
Linux¹ÜµÀµÄʵÏÖ»úÖÆ
ÔÚLinuxÖУ¬¹ÜµÀÊÇÒ»ÖÖʹÓ÷dz£Æµ·±µÄͨÐÅ»úÖÆ¡£´Ó±¾ÖÊÉÏ˵£¬¹ÜµÀÒ²ÊÇÒ»ÖÖÎļþ£¬µ«ËüÓÖºÍÒ»°ãµÄÎļþÓÐËù²»Í¬£¬¹ÜµÀ¿ÉÒÔ¿Ë·þʹÓÃÎļþ½øÐÐͨÐŵÄÁ½¸öÎÊÌ⣬¾ßÌå±íÏÖΪ£º
· ÏÞÖƹܵÀµÄ´óС¡£Êµ¼ÊÉÏ£¬¹ÜµÀÊÇÒ»¸ö¹Ì¶¨´óСµÄ»º³åÇø¡£ÔÚLinuxÖУ¬¸Ã»º³åÇøµÄ´óСΪ1Ò³£¬¼´4K×Ö½Ú£¬Ê¹µÃËüµÄ´óС²»ÏóÎļþÄÇÑù²»¼Ó¼ìÑéµØÔö³¤¡£Ê¹ Óõ¥¸ö¹Ì¶¨»º³åÇøÒ²»á´øÀ´ÎÊÌ⣬±ÈÈçÔÚд¹ÜµÀʱ¿ÉÄܱäÂú£¬µ±ÕâÖÖÇé¿ö·¢Éúʱ£¬Ëæºó¶Ô¹ÜµÀµÄwrite()µ÷Óý«Ä¬Èϵر»×èÈû£¬µÈ´ýijЩÊý¾Ý±»¶ÁÈ¡£¬ÒÔ±ãÌÚ ³ö×ã¹»µÄ¿Õ¼ä¹©write()µ÷ÓÃд¡£
· ¶ÁÈ¡½ø³ÌÒ²¿ÉÄܹ¤×÷µÃ±Èд½ø³Ì¿ì¡£µ±ËùÓе±Ç°½ø³ÌÊý¾ÝÒѱ»¶Áȡʱ£¬¹ÜµÀ±ä¿Õ¡£µ±ÕâÖÖÇé¿ö·¢Éúʱ£¬Ò»¸öËæºóµÄread()µ÷Óý«Ä¬Èϵر»×èÈû£¬µÈ´ýijЩÊý¾Ý±»Ð´È룬Õâ½â¾öÁËread()µ÷Ó÷µ»ØÎļþ½áÊøµÄÎÊÌâ¡£
×¢Ò⣺´Ó¹ÜµÀ¶ÁÊý¾ÝÊÇÒ»´ÎÐÔ²Ù×÷£¬Êý¾ÝÒ»µ©±»¶Á£¬Ëü¾Í´Ó¹ÜµÀÖб»Å×Æú£¬ÊÍ·Å¿Õ¼äÒÔ±ãд¸ü¶àµÄÊý¾Ý¡£
1. ¹ÜµÀµÄ½á¹¹
ÔÚ Linux ÖУ¬¹ÜµÀµÄʵÏÖ²¢Ã»ÓÐʹÓÃרÃŵÄÊý¾Ý½á¹¹£¬¶øÊǽèÖúÁËÎļþϵͳµÄfile½á¹¹ºÍVFSµÄË÷Òý½Úµãinode¡£Í¨¹ý½«Á½¸ö file ½á¹¹Ö¸Ïòͬһ¸öÁÙʱµÄ VFS Ë÷Òý½Úµã£¬¶øÕâ¸ö VFS Ë÷Òý½ÚµãÓÖÖ¸ÏòÒ»¸öÎïÀíÒ³Ãæ¶øʵÏֵġ£
2.¹ÜµÀµÄ¶Áд
¹ÜµÀʵÏÖµÄÔ´´úÂëÔÚfs/pipe.cÖУ¬ÔÚpipe.cÖÐÓкܶຯÊý£¬ÆäÖÐÓÐÁ½¸öº¯Êý±È½ÏÖØÒª£¬¼´¹ÜµÀ¶Áº¯Êýpipe_read()ºÍ¹ÜµÀдº¯Êý pipe_wrtie()¡£¹ÜµÀдº¯Êýͨ¹ý½«×Ö½Ú¸´ÖƵ½ VFS Ë÷Òý½ÚµãÖ¸ÏòµÄÎïÀíÄÚ´æ¶øдÈëÊý¾Ý£¬¶ø¹ÜµÀ¶Áº¯ÊýÔòͨ¹ý¸´ÖÆÎïÀíÄÚ´æÖеÄ×Ö½Ú¶ø¶Á³öÊý¾Ý¡£µ±È»£¬Äں˱ØÐëÀûÓÃÒ»¶¨µÄ»úÖÆͬ²½¶Ô¹ÜµÀµÄ·ÃÎÊ£¬Îª´Ë£¬ÄÚºËʹÓà ÁËËø¡¢µÈ´ý¶ÓÁкÍÐźš£
µ±Ð´½ø³ÌÏò¹ÜµÀÖÐдÈëʱ£¬ËüÀûÓñê×¼µÄ¿âº¯Êýwrite()£¬ÏµÍ³¸ù¾Ý¿âº¯Êý´«µÝµÄÎļþÃèÊö·û£¬¿ÉÕÒµ½¸ÃÎļþµÄ file ½á¹¹¡£file ½á¹¹ÖÐÖ¸¶¨ÁËÓÃÀ´½øÐÐд²Ù×÷µÄº¯Êý£¨¼´Ð´È뺯Êý£©µØÖ·£¬ÓÚÊÇ£¬Äں˵÷Óøú¯ÊýÍê³Éд²Ù×÷¡£Ð´È뺯ÊýÔÚÏòÄÚ´æÖÐдÈëÊý¾Ý֮ǰ£¬±ØÐëÊ×Ïȼì²é VFS Ë÷Òý½ÚµãÖеÄÐÅÏ¢£¬Í¬Ê±Âú×ãÈçÏÂÌõ¼þʱ£¬²ÅÄܽøÐÐʵ¼ÊµÄÄڴ渴Öƹ¤×÷£º
·ÄÚ´æÖÐ
Ïà¹ØÎĵµ£º
MYSQL°²×°
//½âѹ±àÒë°²×°
# tar xzvf mysql-5.0.27.tar.gz
# cd mysql-5.0.27
# ./configure -prefix=/home/redadmin/mysql
# make
# make install
# cd /home/redadmin/mysql/
# cp share/mysql/my-medium.cnf ./
# mv my-medium.cnf my.cnf
// my.confÎļþÐÞ¸Ä
# vi my.cnf
ÐÞ¸ÄÇ°£º
port &nb ......
×¼±¸¹¤×÷:
¡¡¡¡Óõ½µÄperl À©Õ¹×é¼þ(modules)ÔÚÉÏƪÌù³ö.( win32::odbc Ä£¿é
)ÏÂÔØ×é¼þºó°´ÕÕReadmeÎļþ°²×°µ¹ÏìӦĿ¼.ÅäÖúÃÏàÓ¦µÄodbcÊý¾ÝÔ´.
¡¡¡¡
¡¡¡¡³ÌÐòʵÏÖ:
¡¡¡¡Ê¹ÓÃ
¡¡¡¡use
Win32::ODBC;
¡¡¡¡
¡¡¡¡Óï¾ä°üº¬Ó¦Ê¹ÓõÄÄ£¿éÊÇwin32::odbc,д³öÊý¾Ý¿â
Á¬½Ó×Ö·û´®
¡¡¡¡
¡¡¡¡$DSN = "DSN =
My DSN ......
ºÜ¾ÃûÀ´²©¿ÍÁË£¬Õⶼ°Ý¹«Ë¾ÄǿɶñµÄWebsenseËù´Í£¬×î½üʱ³£·¢ÏÖÓÐһЩLinuxÃüÁîĪÃûÆäÃîµÄÍü¼ÇÁË£¬Ò²ÐíÊÇÉÙÓÃÁË£¬»òÕßÊÇÀÏÁË£º£¨ÓÚÊÇÏëµ½Ë÷ÐÔÔÚÕâÀïдһ±ßÎÄռǼһÏ£¬ÒÔ±ãÈÕºó²Î¿¼¡£
1¡¢É¾³ýÂÒÂëÎļþ£º
# ll -i (»ñµÃÎļþ½ÚµãºÅ)
# find ./ -inum ½ÚµãºÅ -print -exec rm {} -rf \; (ÇÉÓÃfindɾ³ý)
2¡¢findÓëxargs½ ......
linux Öжϴ¦ÀíÁ÷³Ì
linuxÖжϴ¦Àí³ÌÐò·Ö½âΪÁ½¸ö°ë²¿£º¶¥°ë²¿(top half)ºÍµ×°ë²¿(bottom half)
1.
¶¥°ë²¿£ºÓÃÓÚÍê³É¾¡¿ÉÄÜÉٵıȽϼ±µÄ¹¦ÄÜ£¬ÍùÍùÖ»ÊǼòµ¥µØ¶ÁÈ¡¼Ä´æÆ÷ÖеÄÖжÏ״̬²¢Çå³ýÖжϱêÖ¾ºó½øÐГµÇ¼ÇÖжϔµÄ¹¤×÷¡£Ò»°ãÉè¼Æ³É²»
¿ÉÖжϡ£ÕâÑù¶¥°ë²¿µÄÖ´ÐÐËٶȻáºÜ¿ì£¬¿ÉÒÔÏìÓ¦·þÎñ¸ü¶àµÄÖжÏÇëÇó¡£ ......