[linux] vim±àÂë
VimºÍËùÓеÄÁ÷ÐÐÎı¾±à¼Æ÷Ò»Ñù£¬¿ÉÒԺܺõı༸÷ÖÖ×Ö·û±àÂëµÄÎļþ£¬Õ⵱Ȼ°üÀ¨ UCS-2¡¢UTF-8 µÈÁ÷ÐÐµÄ Unicode ±àÂ뷽ʽ¡£¶øÇҺͺܶàÀ´×Ô Linux ÊÀ½çµÄÈí¼þÒ»Ñù£¬ÕâÐèÒªÄã×Ô¼º¶¯ÊÖÉèÖá£
Vim ÓÐËĸö¸ú×Ö·û±àÂ뷽ʽÓйصÄÑ¡Ïencoding ¡¢fileencoding ¡¢fileencodings ¡¢termencoding (ÕâЩѡÏî¿ÉÄܵÄÈ¡ÖµÇë²Î¿¼ Vim ÔÚÏß°ïÖú :help encoding-names)£¬ËüÃǵÄÒâÒåÈçÏÂ:
1¡¢ encoding : Vim ÄÚ²¿Ê¹ÓõÄ×Ö·û±àÂ뷽ʽ£¬°üÀ¨ Vim µÄ buffer (»º³åÇø)¡¢²Ëµ¥Îı¾¡¢ÏûÏ¢Îı¾µÈ¡£Óû§ÊÖ²áÉϽ¨ÒéÖ»ÔÚ .vimrc ÖиıäËüµÄÖµ£¬ÊÂʵÉÏËƺõÒ²Ö»ÓÐÔÚ .vimrc ÖиıäËüµÄÖµ²ÅÓÐÒâÒå¡£
2¡¢ fileencoding : Vim Öе±Ç°±à¼µÄÎļþµÄ×Ö·û±àÂ뷽ʽ£¬Vim ±£´æÎļþʱҲ»á½«Îļþ±£´æΪÕâÖÖ×Ö·û±àÂ뷽ʽ (²»¹ÜÊÇ·ñÐÂÎļþ¶¼Èç´Ë)¡£
3¡¢ fileencodings : Vim Æô¶¯Ê±»á°´ÕÕËüËùÁгöµÄ×Ö·û±àÂ뷽ʽÖðһ̽²â¼´½«´ò¿ªµÄÎļþµÄ×Ö·û±àÂ뷽ʽ£¬²¢ÇÒ½« fileencoding ÉèÖÃΪ×îÖÕ̽²âµ½µÄ×Ö·û±àÂ뷽ʽ¡£Òò´Ë×îºÃ½« Unicode ±àÂ뷽ʽ·Åµ½Õâ¸öÁбíµÄ×îÇ°Ã棬½«À¶¡Óïϵ±àÂ뷽ʽ latin1 ·Åµ½×îºóÃæ¡£
4¡¢ 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
ÓÉ ÓÚ
Ïà¹ØÎĵµ£º
1. ѧ»áд¼òµ¥µÄmakefile
2. ±àһЩӦÓÃ
³ÌÐò
£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯
µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod£¬ lsmod£¬ rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world£¬insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö
¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread£¬ write£¬ ioctl£¬ pollingµÈ¸ ......
ʹÓÃphpµÄ³£¼ûÎÊÌâÊÇ£º±àÒëphpʱÍü¼ÇÌí¼ÓijÀ©Õ¹£¬ºóÀ´ÏëÌí¼ÓÀ©Õ¹£¬µ«ÊÇÒòΪ°²×°phpºóÓÖ×°ÁËһЩ¶«Î÷ÈçPEARµÈ£¬²»Ïëɾ³ýĿ¼ÖØ×°£¬±ð˵£¬php»¹ÕæÓÐÕâÑùµÄ¹¦ÄÜ¡£
¡¡¡¡ÎÒûÓÐÔÚÊÖ²áÖп´µ½¡£
¡¡¡¡ÈçÎÒÏëÔö¼ÓbcmathÖ§³Ö£¬ÕâÊÇÒ»¸öÖ§³Ö´óÕûÊý¼ÆËãµÄÀ©Õ¹¡£windows×Ô´ø¶øÇÒÄÚÖã¬linux“±¾ÀຯÊý½öÔÚ PHP ±àÒëʱÅäÖÃÁË --ena ......
RHEL5ÔÚ°²×°VM-wareTools¹ý³ÌÖгöÏÖÈçÏ´íÎó£º
What is the
location of the directory of C header files that match your running kernel?
[/usr/src/linux/include] The directory of kernel headers (version
2.6.18-8.el5xen) does not match
´Ë´íÎóÖ÷ÒªÊÇÏëÕÒLinuxÄں˵İüº¬Í·ÎļþÕÒ²»µ½¡£Òª½â¾ö´ËÎÊÌâÐèÒª° ......
ÔÚLinuxÉÏ°²×°oracleµÄʱºò²»Ð¡ÐÄ°²×°ÁËÁ½´Îlistener, ¸ãµÃlistenerµÄ¶Ë¿ÚºÅ±ä³ÉÁË1522¶ø²»ÊÇȱʡµÄ1521, ¿Í»§¶ËÁ¬Á˺þö¼Ã»ÓÐÁ¬½ÓÉÏ£¬×îºó²Å·¢ÏÖÊÇlistenerµÄ¶Ë¿ÚºÅ²»¶Ô¡£Ò»ÏÂÊÇÎҸıälistener¶Ë¿ÚºÅµÄ²½Ö裺
1. Ê×ÏÈÐèҪֹͣlistener, ʹÓÃÃüÁîlsnrctl stop
2. listenerÍ£Ö¹ÒԺ󣬵½ÄãµÄ$ORACLE_HOME/network/adminÏÂÕ ......