Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux½ø³Ì¼äͨÐŵĸ÷ÖÖ·½Ê½¼°Æä±È½Ï

     ½ø³Ì¼äͨОÍÊÇÔÚ²»Í¬½ø³ÌÖ®¼ä´«²¥»ò½»»»ÐÅÏ¢£¬ÄÇô²»Í¬½ø³ÌÖ®¼ä´æÔÚ×Åʲô˫·½¶¼¿ÉÒÔ·ÃÎʵĽéÖÊÄØ£¿½ø³ÌµÄÓû§¿Õ¼äÊÇ»¥Ïà¶ÀÁ¢µÄ£¬Ò»°ã¶øÑÔÊDz»ÄÜ»¥Ïà·ÃÎʵģ¬Î¨Ò»µÄÀýÍâÊǹ²ÏíÄÚ´æÇø¡£µ«ÊÇ£¬ÏµÍ³¿Õ¼ä
È´ÊÇ“¹«¹²³¡Ëù”£¬ËùÒÔÄÚºËÏÔÈ»¿ÉÒÔÌṩÕâÑùµÄÌõ¼þ¡£³ý´ËÒÔÍ⣬ÄǾÍÊÇË«·½¶¼¿ÉÒÔ·ÃÎʵÄÍâÉè
ÁË¡£ÔÚÕâ¸öÒâÒåÉÏ£¬Á½¸ö½ø³Ìµ±È»Ò²¿ÉÒÔͨ¹ý´ÅÅÌÉϵÄÆÕͨÎļþ
½»»»ÐÅÏ¢£¬»òÕßͨ¹ý“×¢²á±í
”»òÆäËüÊý¾Ý¿âÖеÄijЩ±íÏîºÍ¼Ç¼
½»»»ÐÅÏ¢¡£¹ãÒåÉÏÕâÒ²Êǽø³Ì¼äͨÐŵÄÊֶΣ¬µ«ÊÇÒ»°ã¶¼²»°ÑÕâËã×÷“½ø³Ì¼äͨÐÅ”¡£ÒòΪÄÇЩͨÐÅÊֶεÄЧÂÊÌ«µÍÁË£¬¶øÈËÃǶԽø³Ì¼äͨÐŵÄÒªÇóÊÇÒªÓÐÒ»¶¨µÄʵʱÐÔ¡£

½ø³Ì¼äͨÐÅÖ÷Òª°üÀ¨¹ÜµÀ, ϵͳIPC(°üÀ¨ÏûÏ¢¶ÓÁÐ,ÐźÅÁ¿,¹²Ïí´æ´¢), SOCKET.
¹ÜµÀ°üÀ¨ÈýÖÖ:1)ÆÕͨ¹ÜµÀPIPE, ͨ³£ÓÐÖÖÏÞÖÆ,Ò»ÊÇ°ëË«¹¤,Ö»Äܵ¥Ïò´«Êä;¶þÊÇÖ»ÄÜÔÚ¸¸×Ó½ø³Ì¼äʹÓÃ. 2)Á÷¹ÜµÀs_pipe:
È¥³ýÁ˵ÚÒ»ÖÖÏÞÖÆ,¿ÉÒÔË«Ïò´«Êä. 3)ÃüÃû¹ÜµÀ:name_pipe, È¥³ýÁ˵ڶþÖÖÏÞÖÆ,¿ÉÒÔÔÚÐí¶à²¢²»Ïà¹ØµÄ½ø³ÌÖ®¼ä½øÐÐͨѶ.
ϵͳIPCµÄÈýÖÖ·½Ê½Ààͬ,¶¼ÊÇʹÓÃÁËÄÚºËÀïµÄ±êʶ·ûÀ´Ê¶±ð.

FAQ1: ¹ÜµÀÓëÎļþÃèÊö·û,ÎļþÖ¸ÕëµÄ¹Øϵ?
´ð: Æäʵ¹ÜµÀµÄʹÓ÷½·¨ÓëÎļþÀàËÆ,¶¼ÄÜʹÓÃread,write,openµÈÆÕͨIOº¯Êý. ¹ÜµÀÃèÊö·ûÀ´ÀàËÆÓÚÎļþÃèÊö·û. ÊÂʵÉÏ,
¹ÜµÀʹÓõÄÃèÊö·û, ÎļþÖ¸ÕëºÍÎļþÃèÊö·û×îÖÕ¶¼»áת»¯³ÉϵͳÖÐSOCKETÃèÊö·û. ¶¼Êܵ½ÏµÍ³ÄÚºËÖÐSOCKETÃèÊö·ûµÄÏÞÖÆ.
±¾ÖÊÉÏLINUXÄÚºËÔ´ÂëÖйܵÀÊÇͨ¹ý¿ÕÎļþÀ´ÊµÏÖ.

FAQ2: ¹ÜµÀµÄʹÓ÷½·¨?
´ð: Ö÷ÒªÓÐÏÂÃ漸ÖÖ·½·¨: 1)pipe, ´´½¨Ò»¸ö¹ÜµÀ,·µ»Ø2¸ö¹ÜµÀÃèÊö·û.ͨ³£ÓÃÓÚ¸¸×Ó½ø³ÌÖ®¼äͨѶ. 2)popen, pclose:
ÕâÖÖ·½Ê½Ö»·µ»ØÒ»¸ö¹ÜµÀÃèÊö·û,³£ÓÃÓÚͨÐÅÁíÒ»·½ÊÇstdin or stdout; 3)mkpipe: ÃüÃû¹ÜµÀ, ÔÚÐí¶à½ø³ÌÖ®¼ä½øÐн»»¥.

FAQ3: ¹ÜµÀÓëϵͳIPCÖ®¼äµÄÓÅÁӱȽÏ?
´ð: ¹ÜµÀ: ÓŵãÊÇËùÓеÄUNIXʵÏÖ¶¼Ö§³Ö, ²¢ÇÒÔÚ×îºóÒ»¸ö·ÃÎʹܵÀµÄ½ø³ÌÖÕÖ¹ºó,¹ÜµÀ¾Í±»Íêȫɾ³ý;ȱÏÝÊǹܵÀÖ»ÔÊÐíµ¥Ïò´«Êä»òÕßÓÃÓÚ¸¸×Ó½ø³ÌÖ®¼ä.
       ϵͳIPC: ÓŵãÊǹ¦ÄÜÇ¿´ó,ÄÜÔÚºÁ²»Ïà¹Ø½ø³ÌÖ®¼ä½øÐÐͨѶ; ȱÏÝÊǹؼü×ÖKEY_TʹÓÃÁËÄں˱êʶ,Õ¼ÓÃÁËÄÚºË×ÊÔ´,¶øÇÒÖ»Äܱ»ÏÔʽɾ³ý,¶øÇÒ²»ÄÜʹÓÃSOCKETµÄһЩ»úÖÆ,ÀýÈçselect,epollµÈ.

FAQ4: WINDOS½ø³Ì¼äͨÐÅÓëLINUX½ø³Ì¼äͨÐŵĹØϵ?
´ð: ÊÂʵÉÏ,WINDOSµÄ½ø³ÌͨÐŴ󲿷ÖÒÆÖ²ÓÚUNIX, WINDOSµÄ¼ôÌù°å,ÎļþÓ³ÉäµÈ¶¼¿É´ÓUNI


Ïà¹ØÎĵµ£º

Mysql for linux mysql×Ô¶¯±¸·Ý½Å±¾

¿ÉÒÔ½«Õâ¸ö½Å±¾·Å½øcrontab£¬ËûµÄÅäÖÆÎļþÔÚ /etc/crontabÖÐÿÌìÁ賿ִÐÐÒ»´Î£¬×Ô¶¯±¸·Ý Õâ¸ö½Å±¾Ã¿Ìì×î¶àÖ»Ö´ÐÐÒ»´Î£¬¶øÇÒÖ»±£Áô×î½üÎåÌìµÄ±¸·ÝÔÚ·þÎñÆ÷ÉÏ¡£
#!/bin/bash
#This is a ShellScript For Auto DB Backup
#Powered by aspbiz
#2004-09
#Setting
#ÉèÖÃÊý¾Ý¿âÃû£¬Êý¾Ý¿âµÇ¼Ãû£¬ÃÜÂ룬±¸·Ý·¾¶£¬ÈÕ־ ......

linuxÏÂmysqlµÄʹÓÃ


Æô¶¯mysql:  /etc/rc.d/init.d/mysql start
ÐÞ¸ÄÃÜÂë: ¸ñʽ£ºmysqladmin -uÓû§Ãû -p¾ÉÃÜÂë password ÐÂÃÜÂë
ʹÓÃÃÜÂëµÇ¼:  mysql -u root -p
ÏÔʾÊý¾Ý¿â:  show databases;
Ñ¡ÔñÊý¾Ý¿â:  use Êý¾Ý¿âÃû;
ÏÔʾ±í:  show tables;
ÏÔʾ±í½á¹¹:  descibe ±íÃû;
Ô¶³ÌµÇ¼mysqlÐèÒª¿ªÆôÈ ......

LinuxÉÏtomcatµÄ°²×°

1. È¥http://jakarta.apache.org/tomcat/ ÏÂÔØÒ»¸öTomcat;
¡¡¡¡[root@LinuxServer gz]#wget http://apache.bestwebcover.com/jakarta/tomcat-5/v5.5.4/bin/jakarta-tomcat-5.5.4.tar.gz &
¡¡¡¡[root@LinuxServer gz]#wget http://apache.bestwebcover.com/jakarta/tomcat-5/v5.5.4/bin/jakarta-tomcat-5.5.4.tar.gz.m ......

³£ÓõÄLinuxÍøÂ簲ȫ¹¤¾ß¼ò½é

³£ÓõÄLinuxÍøÂ簲ȫ¹¤¾ß¼ò½é
×÷Õß: ØýÃû, ¡¡³ö´¦:ITר¼ÒÍøÂÛ̳,¡¡ÔðÈα༭: °×Ö¾·É,
2009-10-16 07:08
¡¡¡¡¾¡¹Ü¸÷ÖÖ°æ±¾µÄLinux distribution ¸½´øÁ˺ܶ࿪·ÅÔ´´úÂëµÄ×ÔÓÉÈí¼þ£¬µ«ÊÇÈÔÈ»ÓдóÁ¿µÄÓÐÓõŤ¾ßûÓб»Ä¬ÈÏ°üÀ¨ÔÚËüÃǵݲװ¹âÅÌÄÚ£¬ÌرðÊÇÓÐһЩ¿ÉÒÔÔöÇ¿LinuxÍøÂ簲ȫµÄ¹¤¾ß°ü£¬ËüÃÇ´ó¶àÒ²ÊÇ¿ª·ÅÔ´µÄ×ÔÓÉÈí¼þ ......

LinuxÖеÄ"Á㿽±´"ÆÊÎö

http://blog.chinaunix.net/u/9861/showart_1890675.html

LinuxÖеÄ"Á㿽±´"ÆÊÎö
Zero Copy I: User-Mode Perspective
Author By Dragan Stancevic
Translated By Love. Katherine

(½âÊÍLinuxÖеÄ"Á㿽±´"ÌØÐÔ£¬ÎªÊ²Ã´ÓÐÓÃÒÔ¼°ºÎ´¦ÐèÒª¸Ä½øÖ®´¦)

Èç½ñ¼¸ºõÿ¸öÈ˶¼Ìý˵¹ýLinuxÖÐËùνµÄ"Á㿽±´"ÌØÐÔ£¬È»¶øÎÒ¾­ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ