linuxÐÒéÕ»Ö®Á´Â·²ãÉϵÄÊý¾Ý´«ÊäÖ®Íø¿¨Çý¶¯
ÎÄÕÂÀ´Ô´£ºhttp://blog.chinaunix.net/u1/51562/showart_405963.html
http://ericxiao.cublog.cn/¶ÔÄÚºËÔ´Âë·ÖÎöµÄ±È½ÏÏêϸ£¬¸ÐлÎÄÕÂ×÷ÕßÎÞ˽·îÏ×
±¾ÎÄ»¶ÓתÔØ!
תÔØÇë×¢Ã÷³ö´¦:http://ericxiao.cublog.cn/
------------------------------------------
<<prison break>>µÚÈý¼¾µÄµÚÎ弯£¬ÖÕÓÚÔÚÇÌÊ×ÆóÅÎÖÐæ©æ©À´³ÙÁË£¬scofidÓÃËü¾ªÈ˵ÄÖÇ»ÛÒ»´Î´Î»¯ÏÕΪÒÄ£¬µ«ÔÚа¶ñµÄsona¼àÓüËû½«ÈçºÎÌÓÍÑÄØ£¿ÕâÎÒÃDz»µÃ¶øÖª£¬µ«ÎÒÃÇ¿ÉÒÔ·ÖÎöLinuxÍøÂçÇý¶¯À´µÃµ½Êý¾Ý°üÊÇÔõôͨ¹ýÎïÀí½Ó¿ÚµÄÕâÒ»²ã“prison”Êø¸¿À´´ïµ½Í¨ÐÅÄ¿µÄ£º-£©
Ò»£ºÔ¤±¸ÖªÊ¶
¹ØÓÚI/OÄÚ´æÓ³Éä¡£
É豸ͨ¹ý¿ØÖÆ×ÜÏߣ¬Êý¾Ý×ÜÏߣ¬×´Ì¬×ÜÏßÓëCPUÏàÁ¬¡£¿ØÖÆ×ÜÊý´«ËÍ¿ØÖÆÐźţ¬ÀýÈ磬Íø¿¨µÄÆôÓá£Êý¾Ý×ÜÏß¿ØÖÆÊý¾Ý´«Ê䣬ÀýÈ磬Íø¿¨·¢ËÍÊý¾Ý£¬×´Ì¬×ÜÊýÒ»°ã¶¼ÊǶÁÈ¡É豸µÄµ±Ç°×´Ì¬£¬ÀýÈç¶ÁÈ¡Íø¿¨µÄMACµØÖ·¡£
ÔÚ´«Í³µÄ²Ù×÷ÖУ¬¶¼ÊÇͨ¹ý¶ÁдÉ豸¼Ä´æÆ÷µÄÖµÀ´ÊµÏÖ¡£µ«ÊÇÕâÑùºÄ·ÑÁËCPUʱÖÓ¡£¶øÇÒÿȡһ´ÎÖµ¶¼Òª¶ÁÈ¡É豸¼Ä´æÆ÷£¬Ôì³ÉÁËЧÂʵĵÍÏ¡£ÔÚÏÖ´ú²Ù×÷ϵͳÖС£ÒýÓÃÁËI/OÄÚ´æÓ³Éä¡£¼´°Ñ¼Ä´æÆ÷µÄÖµÓ³Éíµ½Ö÷´æ¡£¶ÔÉ豸¼Ä´æÆ÷µÄ²Ù×÷£¬×ª»»Îª¶ÔÖ÷´æµÄ²Ù×÷£¬ÕâÑù¼«´óµÄÌá¸ßÁËЧÂÊ¡£
¹ØÓÚDMA
ÕâÊǹØÓÚÉ豸Êý¾Ý´¦ÀíµÄÒ»ÖÖ·½Ê½¡£´«Í³µÄ´¦Àí·½·¨Îª£ºµ±É豸½ÓÊÕµ½Êý¾Ý£¬ÏòCPU±¨¸æÖжϡ£CPU´¦ÀíÖжϣ¬°ÑÊý¾Ý·Åµ½ÄÚ´æ¡£
ÔÚÏÖ´ú²Ù×÷ϵͳÖÐÒýÈëµÄDMAÊÇÖ¸£¬É豸½ÓÊÕµ½Êý¾Ýʱ£¬°ÑÊý¾Ý·ÅÖÁDMAÄڴ棬ÔÙÏòCPU²úÉúÖжϡ£ÕâÑù½ÚÊ¡ÁË´óÁ¿µÄCPUʱ¼ä
¹ØÓÚÈíÖжÏÓëNAPI
ÔÚÏÖ´ú²Ù×÷ϵͳÖУ¬¶ÔÖжϵĴ¦ÀíËÙ¶ÈÒªÇóÔ½À´Ô½¸ß¡£ÎªÁËÏìÓ¦Öжϣ¬½«ÖжϷÖΪÁ½²¿·Ý£¬¼´Éϰ벿ÓëÏ°벿¡£Éϰ벿½«Êý¾ÝÍÆÈë´¦Àí¶ÓÁУ¬ÏìÓ¦Öжϡ£È»ºóÔÙÓÉÏ°벿µ÷¶ÈÍê³ÉÓàϵÄÈÎÎñ¡£
NAPIÊÇ2.6ÐÂÒýÈëµÄÒ»¸ö¸ÅÄËüÔÚ·¢ÉúÖжϵÄʱºò£¬½ûÓÃÖжϡ£È»ºó´¦ÀíÊý¾Ý¡£Ö®ºó£¬Ã¿¸ôÒ»¶¨µÄʱºò£¬Ëü»áÖ÷¶¯ÏòÉ
Ïà¹ØÎĵµ£º
ÔÚLinux²Ù×÷ϵͳÖУ¬ÓÐÒ»¸öϵͳÈí¼þ°ü£¬ËüµÄ¹¦ÄÜÀàËÆÓÚWindowsÀïÃæµÄ“Ìí¼Ó/ɾ³ý³ÌÐò”£¬µ«Êǹ¦ÄÜÓֱȓÌí¼Ó/ɾ³ý³ÌÐò”Ç¿ºÜ¶à£¬Ëü¾ÍÊÇRed Hat Package Manager(¼ò³ÆRPM)¡£´Ë¹¤¾ß°ü×îÏÈÊÇÓÉRed Hat¹«Ë¾ÍƳöµÄ£¬ºóÀ´±»ÆäËûLinux¿ª·¢ÉÌËù½èÓá£ÓÉÓÚËüΪLinuxʹÓÃÕßÊ¡È¥Á˺ܶàʱ¼ä£¬ËùÒÔ±»¹ã·ºÓ¦ÓÃÓÚÔÚLin ......
Ìí¼ÓÓ²Å̺óÆô¶¯ÐéÄâ»ú£¬ Èç¹ûÌí¼ÓµÄSCSIÓ²ÅÌÕâʱӦ¸Ã¶à³öÒ»¸ösdb/sdc/..µÄÅÌ£¬¿ÉÒÔÓà fdisk -l ²é¿´µ½
·ÖÇøfdisk /dev/sdb ---> n p 1 »Ø³µ »Ø³µ w
¸ñʽ»¯mkfs -t ext3 -c /dev/sdb1
¹ÒÔص½Ä³¸öĿ¼ mount /dev/sdb1 /home
vi /etc/fstab Ìí¼ÓÒ»ÐÐ /dev/sdb1 /home ext3 defau ......
ÒÔÇ°GodaddyµÄLinuxµÄÖ÷»úÊDz»ÄÜ¿ªÍ¨SSHµÄ£¬Ö»ÓÐVDS¡¢VPS¡¢¶ÀÁ¢Ö÷»ú¿ÉÒÔ¿ªÍ¨£¬Ç°¼¸ÌìÔÚºǫ́ÉÏ¿´µ½ÓÐÁËSSHÕâ¸ö¹¦ÄÜ£¬²»¹ýÐèҪɾ³ýËùÓеÄÊý¾Ý¿â£¬²Å¿ÉÒÔ½øÐпªÍ¨µÄ²½Ö衣ǿÁÒ½¨Ò鱸·ÝÊý¾Ý¿â¼°ÍøÕ¾£¡£¡
ɾ³ýÊý¾Ý¿â¾Í²»ÓÃ˵ÁË¡«ºÜ¼òµ¥¡£
²½Ö裺½øÈë¿Õ¼ä¹ÜÀíÃæ°å£¬Ñ¡ÔñSettingsÑ¡ÏϵÄSSHÑ¡ÏÈçÏÂͼ£º
godaddyssh-thumb. ......
sambaʵÏÖubuntu¸úwindowsÎļþ¹²Ïí
Ò»£® Samba ¼ò½é
Samba£¨SMBÊÇÆäËõд£© ÊÇÒ»¸öÍøÂç·þÎñÆ÷£¬ÓÃÓÚLinuxºÍWindows¹²ÏíÎļþÖ®Óã»Samba ¼´¿ÉÒÔÓÃÓÚWindowsºÍLinuxÖ®¼äµÄ¹²ÏíÎļþ£¬Ò²Ò»ÑùÓÃÓÚLinuxºÍLinuxÖ®¼äµÄ¹²ÏíÎļþ£»²»¹ý¶ÔÓÚLinuxºÍLinuxÖ®¼ä¹²ÏíÎļþÓиüºÃµÄÍøÂçÎļþϵͳNFS£¬NFSÒ²ÊÇÐèÒª¼ÜÉè·þÎñÆ÷µÄ£»
´ó¼ÒÖª ......
ÿ´Î¶¼ÊÇÓõ½£¬²éһϣ¬Ð´Ï£¬Õâ´ÎÉÔ΢¼Ç¼Ï±ʼǡ£
ºÍThreadÏà¹Ø£¬»ù±¾µÄÓÐ3¸ö¸ÅÄÏ̵߳Ľ¨Á¢ºÍÏú»Ù£»Ïß³ÌËø£»Ïß³ÌÌõ¼þ
¹ØÓÚ½¨Á¢Ị̈߳º
ret = pthread_create(&thread_id, NULL, Do_Thread, &Do_Thread_Para);
// µÚ2²ÎÊýÊÇthread ÊôÐÔ£¬Ò»°ãÎÒ²»ÓÃÉèÖÃ
// µÚ4¸ö²ÎÊýÊÇDo_ThreadµÄÈë¿Ú²ÎÊý£¬Ò»°ãÎÒ´«Ò»¸ö½á ......