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

½â¾ölinux vimÂÒÂëÎÊÌâ

VimºÍËùÓеÄÁ÷ÐÐÎı¾±à¼­Æ÷Ò»Ñù£¬Vim ¿ÉÒԺܺõı༭¸÷ÖÖ×Ö·û±àÂëµÄÎļþ£¬Õ⵱Ȼ°üÀ¨ UCS-2¡¢UTF-8 µÈÁ÷ÐÐµÄ Unicode ±àÂ뷽ʽ¡£È»¶ø²»ÐÒµÄÊÇ£¬ºÍºÜ¶àÀ´×Ô Linux ÊÀ½çµÄÈí¼þÒ»Ñù£¬ÕâÐèÒªÄã×Ô¼º¶¯ÊÖÉèÖá£
Vim ÓÐËĸö¸ú×Ö·û±àÂ뷽ʽÓйصÄÑ¡Ïencoding¡¢fileencoding¡¢fileencodings¡¢termencoding (ÕâЩѡÏî¿ÉÄܵÄÈ¡ÖµÇë²Î¿¼ Vim ÔÚÏß°ïÖú :help encoding-names)£¬ËüÃǵÄÒâÒåÈçÏÂ:
* encoding: Vim ÄÚ²¿Ê¹ÓõÄ×Ö·û±àÂ뷽ʽ£¬°üÀ¨ Vim µÄ buffer (»º³åÇø)¡¢²Ëµ¥Îı¾¡¢ÏûÏ¢Îı¾µÈ¡£Óû§ÊÖ²áÉϽ¨ÒéÖ»ÔÚ .vimrc ÖиıäËüµÄÖµ£¬ÊÂʵÉÏËƺõÒ²Ö»ÓÐÔÚ .vimrc ÖиıäËüµÄÖµ²ÅÓÐÒâÒå¡£
* fileencoding: Vim Öе±Ç°±à¼­µÄÎļþµÄ×Ö·û±àÂ뷽ʽ£¬Vim ±£´æÎļþʱҲ»á½«Îļþ±£´æΪÕâÖÖ×Ö·û±àÂ뷽ʽ (²»¹ÜÊÇ·ñÐÂÎļþ¶¼Èç´Ë)¡£
* fileencodings: Vim Æô¶¯Ê±»á°´ÕÕËüËùÁгöµÄ×Ö·û±àÂ뷽ʽÖðһ̽²â¼´½«´ò¿ªµÄÎļþµÄ×Ö·û±àÂ뷽ʽ£¬²¢ÇÒ½«
fileencoding ÉèÖÃΪ×îÖÕ̽²âµ½µÄ×Ö·û±àÂ뷽ʽ¡£Òò´Ë×îºÃ½« Unicode ±àÂ뷽ʽ·Åµ½Õâ¸öÁбíµÄ×îÇ°Ã棬½«À­¶¡Óïϵ±àÂ뷽ʽ
latin1 ·Åµ½×îºóÃæ¡£
* termencoding: Vim Ëù¹¤×÷µÄÖÕ¶Ë (»òÕß Windows µÄ Console ´°¿Ú) µÄ×Ö·û±àÂ뷽ʽ¡£Õâ¸öÑ¡ÏîÔÚ
Windows ϶ÔÎÒÃdz£ÓÃµÄ GUI ģʽµÄ gVim ÎÞЧ£¬¶ø¶Ô Console ģʽµÄ Vim ¶øÑÔ¾ÍÊÇ Windows
¿ØÖÆ̨µÄ´úÂëÒ³£¬²¢ÇÒͨ³£ÎÒÃDz»ÐèÒª¸Ä±äËü¡£
ºÃÁË£¬½âÊÍÍêÁËÕâÒ»¶ÑÈÝÒ×ÈÃÐÂÊÖ·¸ºýÍ¿µÄ²ÎÊý£¬ÎÒÃÇÀ´¿´¿´ Vim µÄ¶à×Ö·û±àÂ뷽ʽ֧³ÖÊÇÈçºÎ¹¤×÷µÄ¡£
1. Vim Æô¶¯£¬¸ù¾Ý .vimrc ÖÐÉèÖÃµÄ encoding µÄÖµÀ´ÉèÖà buffer¡¢²Ëµ¥Îı¾¡¢ÏûÏ¢ÎĵÄ×Ö·û±àÂ뷽ʽ¡£
2. ¶ÁÈ¡ÐèÒª±à¼­µÄÎļþ£¬¸ù¾Ý fileencodings ÖÐÁгöµÄ×Ö·û±àÂ뷽ʽÖðһ̽²â¸ÃÎļþ±àÂ뷽ʽ¡£²¢ÉèÖà fileencoding Ϊ̽²âµ½µÄ£¬¿´ÆðÀ´ÊÇÕýÈ·µÄ (×¢1) ×Ö·û±àÂ뷽ʽ¡£
3. ¶Ô±È fileencoding ºÍ encoding µÄÖµ£¬Èô²»Í¬Ôòµ÷Óà iconv ½«ÎļþÄÚÈÝת»»Îª encoding
ËùÃèÊöµÄ×Ö·û±àÂ뷽ʽ£¬²¢ÇÒ°Ñת»»ºóµÄÄÚÈݷŵ½Îª´ËÎļþ¿ª±ÙµÄ buffer
À´ËʱÎÒÃǾͿÉÒÔ¿ªÊ¼±à¼­Õâ¸öÎļþÁË¡£×¢Ò⣬Íê³ÉÕâÒ»²½¶¯×÷ÐèÒªµ÷ÓÃÍⲿµÄ iconv.dll (×¢2)£¬ÄãÐèÒª±£Ö¤Õâ¸öÎļþ´æÔÚÓÚ
$VIMRUNTIME »òÕßÆäËûÁÐÔÚ PATH »·¾³±äÁ¿ÖеÄĿ¼Àï¡£
4. ±à¼­Íê³Éºó±£´æÎļþʱ£¬ÔÙ´Î¶Ô±È fileencoding ºÍ encoding µÄÖµ¡£Èô²»Í¬£¬Ôٴε÷Óà iconv ½«¼´½«±£´æµÄ
buffer ÖеÄÎı¾×ª»»Îª fileencoding ËùÃèÊöµÄ×Ö·û±àÂ뷽ʽ£¬²¢±£´æµ½Ö¸¶¨µÄÎļþÖС£Í¬Ñù£¬ÕâÐèÒªµ÷Óà iconv.dll


Ïà¹ØÎĵµ£º

LinuxÏÂApache ÅäÖÃÎļþÏê½â


### Section 1: Global Environment
//µ±·þÎñÆ÷ÏìÓ¦Ö÷»úÍ·£¨header£©ÐÅϢʱÏÔʾApacheµÄ°æ±¾ºÍ²Ù×÷ϵͳÃû³Æ
ServerTokens OS
//ÉèÖ÷þÎñÆ÷µÄ¸ùĿ¼
ServerRoot "/etc/httpd"
#ScoreBoardFile run/httpd.scoreboard
//ÉèÖÃÔËÐÐApacheʱʹÓõÄPidFileµÄ·¾¶
PidFile run/httpd.pid
//Èô300ÃëºóûÓÐÊÕµ½»òËͳöÈκÎÊ ......

linuxÏÂconfigureÃüÁîÏêϸ½éÉÜ

Linux»·¾³ÏµÄÈí¼þ°²×°£¬²¢²»ÊÇÒ»¼þÈÝÒ×µÄÊÂÇé;Èç¹ûͨ¹ýÔ´´úÂë±àÒëºóÔÚ°²×°£¬µ±È»ÊÂÇé¾Í¸üΪ¸´ÔÓһЩ;ÏÖÔÚ°²×°¸÷ÖÖÈí¼þµÄ½Ì³Ì¶¼·Ç³£ÆÕ±é;µ«
Íò±ä²»ÀëÆäÖУ¬¶Ô»ù´¡ÖªÊ¶µÄÔúʵÕÆÎÕ£¬°²×°¸÷ÖÖÈí¼þµÄÎÊÌâ¾ÍÓ­Èжø½âÁË¡£Configure½Å±¾ÅäÖù¤¾ß¾ÍÊÇ»ù´¡Ö®Ò»£¬ËüÊÇautoconfµÄ¹¤¾ßµÄ»ù±¾
Ó¦Óá£
ÓëһЩ¼¼ÇÉÏà±È£¬ConfigureÏԵûù ......

Linux ¹ÜÀí¹¤¾ß½éÉÜ

¡¾IT168 ·þÎñÆ÷
ѧԺ
¡¿
  LinuxÊÇÒ»¸ö¶àÓû§µÄ²Ù×÷ϵͳ
£¬ËýÓÐÍêÃÀµÄÓû§¹ÜÀí¹¤¾ß£¬ÕâЩ¹¤¾ß°üÀ¨Óû§µÄ²éѯ¡¢Ìí¼Ó¡¢Ð޸ģ¬ÒÔ¼°Óû§Ö®¼äÏ໥Çл»µÄ¹¤¾ßµÈ£»Í¨¹ýÕâЩ¹¤¾ß£¬ÎÒÃÇÄÜ°²È«
¡¢ÇáËɵÄÍê³ÉÓû§¹ÜÀí£»
    ÔÚÕâÀïÎÒÃÇÒªÒýÈëÓû§¿ØÖƹ¤¾ßµÄ¸ÅÄ±ÈÈç¶ÔÓû§Ìí¼ÓµÄuseradd»òadduser £¬¶ÔÓû§ ......

Linux¸÷¸öÎļþ¼ÐµÄÖ÷Òª×÷ÓÃ

linuxϵÄÎļþ½á¹¹£¬¿´¿´Ã¿¸öÎļþ¼Ð¶¼ÊǸÉÂðÓõÄ
/bin ¶þ½øÖÆ¿ÉÖ´ÐÐÃüÁî
/dev É豸ÌØÊâÎļþ
/etc ϵͳ¹ÜÀíºÍÅäÖÃÎļþ
/etc/rc.d Æô¶¯µÄÅäÖÃÎļþºÍ½Å±¾
/home Óû§Ö÷Ŀ¼µÄ»ùµã£¬±ÈÈçÓû§userµÄÖ÷Ŀ¼¾ÍÊÇ/home/user£¬¿ÉÒÔÓÃ~user±íʾ
/lib ±ê×¼³ÌÐòÉè¼Æ¿â£¬Óֽж¯Ì¬Á´½Ó¹²Ïí¿â£¬×÷ÓÃÀàËÆwindowsÀïµÄ.dllÎļþ
/ ......

linux send recvº¯ÊýÏê½â


i
nt send( SOCKET s, const char FAR *buf, int len, int flags );

    ²»ÂÛÊÇ¿Í»§»¹ÊÇ·þÎñÆ÷Ó¦ÓóÌÐò¶¼ÓÃsendº¯ÊýÀ´ÏòTCPÁ¬½ÓµÄÁíÒ»¶Ë·¢ËÍÊý¾Ý¡£
¿Í»§³ÌÐòÒ»°ãÓÃsendº¯ÊýÏò·þÎñÆ÷·¢ËÍÇëÇ󣬶ø·þÎñÆ÷Ôòͨ³£ÓÃsendº¯ÊýÀ´Ïò¿Í»§³ÌÐò·¢ËÍÓ¦´ð¡£
    ¸Ãº¯ÊýµÄµÚÒ»¸ö²ÎÊýÖ¸¶¨·¢ËͶËÌ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ