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

Linux ¹²Ïí¿â£º LD_LIBRARY_PATH Óëld.so.conf

Linux ÔËÐеÄʱºò£¬ÊÇÈçºÎ¹ÜÀí¹²Ïí¿â(*.so)µÄ£¿ÔÚ Linux ÏÂÃ棬¹²Ïí¿âµÄÑ°ÕҺͼÓÔØÊÇÓÉ /lib/ld.so ʵÏֵġ£ ld.so ÔÚ±ê׼·¾­(/lib, /usr/lib) ÖÐÑ°ÕÒÓ¦ÓóÌÐòÓõ½µÄ¹²Ïí¿â¡£
µ«ÊÇ£¬Èç¹ûÐèÒªÓõ½µÄ¹²Ïí¿âÔڷDZê׼·¾­£¬ld.so ÔõôÕÒµ½ËüÄØ£¿
Ä¿Ç°£¬Linux ͨÓõÄ×ö·¨Êǽ«·Ç±ê׼·¾­¼ÓÈë /etc/ld.so.conf£¬È»ºóÔËÐÐ ldconfig Éú³É /etc/ld.so.cache¡£ ld.so ¼ÓÔع²Ïí¿âµÄʱºò£¬»á´Ó ld.so.cache ²éÕÒ¡£
´« ͳÉÏ£¬ Linux µÄÏȱ² Unix »¹ÓÐÒ»¸ö»·¾³±äÁ¿ - LD_LIBRARY_PATH À´´¦Àí·Ç±ê׼·¾­µÄ¹²Ïí¿â¡£ld.so ¼ÓÔع²Ïí¿âµÄʱºò£¬Ò²»á²éÕÒÕâ¸ö±äÁ¿ËùÉèÖõÄ·¾­¡£µ«ÊÇ£¬Óв»ÉÙÉùÒôÖ÷ÕÅÒª±ÜÃâʹÓà LD_LIBRARY_PATH ±äÁ¿£¬ÓÈÆäÊÇ×÷Ϊȫ¾Ö±äÁ¿¡£ÕâЩÉùÒôÊÇ£º
* LD_LIBRARY_PATH is not the answer - http://prefetch.net/articles/linkers.badldlibrary.html
* Why LD_LIBRARY_PATH is bad - http://xahlee.org/UnixResource_dir/_/ldpath.html
* LD_LIBRARY_PATH - just say no - http://blogs.sun.com/rie/date/20040710
½â¾öÕâÒ»ÎÊÌâµÄÁíÒ»·½·¨ÊÇÔÚ±àÒëµÄʱºòͨ¹ý -R<path> Ñ¡ÏîÖ¸¶¨ run-time path¡£
1. Íù/libºÍ/usr/libÀïÃæ¼Ó¶«Î÷£¬ÊDz»ÓÃÐÞ¸Ä/etc/ld.so.confµÄ£¬µ«ÊÇÍêÁËÖ®ºóÒªµ÷Ò»ÏÂldconfig£¬²»È»Õâ¸ölibrary»áÕÒ²»µ½
2. ÏëÍùÉÏÃæÁ½¸öĿ¼ÒÔÍâ¼Ó¶«Î÷µÄʱºò£¬Ò»¶¨ÒªÐÞ¸Ä/etc/ld.so.conf£¬È»ºóÔÙµ÷ÓÃldconfig£¬²»È»Ò²»áÕÒ²»µ½
±ÈÈç°²×°ÁËÒ»¸ömysqlµ½/usr/local/mysql£¬mysqlÓÐÒ»´ó¶ÑlibraryÔÚ/usr/local/mysql/libÏÂÃ棬Õâʱ¾ÍÐèÒªÔÚ/etc/ld.so.confÏÂÃæ¼ÓÒ»ÐÐ/usr/local/mysql/lib£¬±£´æ¹ýºóldconfigһϣ¬ÐµÄlibrary²ÅÄÜÔÚ³ÌÐòÔËÐÐʱ±»ÕÒµ½¡£
3. Èç¹ûÏëÔÚÕâÁ½¸öĿ¼ÒÔÍâ·Ålib£¬µ«ÊÇÓÖ²»ÏëÔÚ/etc/ld.so.confÖмӶ«Î÷£¨»òÕßÊÇûÓÐȨÏÞ¼Ó¶«Î÷£©¡£ÄÇÒ²¿ÉÒÔ£¬¾ÍÊÇexportÒ»¸öÈ«¾Ö±äÁ¿LD_LIBRARY_PATH£¬È»ºóÔËÐгÌÐòµÄʱºò¾Í»áÈ¥Õâ¸öĿ¼ÖÐÕÒlibrary¡£Ò»°ãÀ´½²ÕâÖ»ÊÇÒ»ÖÖÁÙʱµÄ½â¾ö·½°¸£¬ÔÚûÓÐȨÏÞ»òÁÙʱÐèÒªµÄʱºòʹÓá£
4. ldconfig×öµÄÕâЩ¶«Î÷¶¼ÓëÔËÐгÌÐòʱÓйأ¬¸ú±àÒëʱһµã¹Øϵ¶¼Ã»ÓС£±àÒëµÄʱºò»¹ÊǸüÓ-L¾ÍµÃ¼Ó£¬²»Òª»ìÏýÁË¡£
5. ×ÜÖ®£¬¾ÍÊDz»¹Ü×öÁËʲô¹ØÓÚlibraryµÄ±ä¶¯ºó£¬×îºÃ¶¼ldconfigһϣ¬²»È»»á³öÏÖһЩÒâÏë²»µ½µÄ½á¹û¡£²»»á»¨Ì«¶àµÄʱ¼ä£¬µ«ÊÇ»áÊ¡ºÜ¶àµÄÊ¡£
http://hi.baidu.com/fanzier/blog/item/222ba3ec74cb9a2463d09fb5.html
LD_LIBRARY_PATH Õâ¸ö»·¾³±äÁ¿ÊÇ´ó¼Ò×îΪÊìϤµÄ£¬Ëü¸æËßloader£ºÔÚÄÄЩĿ¼ÖпÉÒ


Ïà¹ØÎĵµ£º

Linuxϳ£Óà CVS ÃüÁîÕûÀí


Linuxϳ£Óà CVS ÃüÁîÕûÀí
1. 怬 -- login
$ export CVSROOT=:pserver:username@the_server_name:/home/cvsroot
Note£º
pserverÊÇ·ÃÎÊ·½Ê½£¬Èç¹û·þÎñÆ÷ÉèÖõÄÊÇ¿ÚÁîÈÏÖ¤£¬ÔòÊÇ pserver¡£
usernameÊÇ CVS·þÎñÆ÷µÄÓû§Ãû£¬¿ÉÒÔ¸ù¾ÝÄãµÄÉèÖÃÐÞ¸Ä;
the_server_nameÊÇCVS·þÎñÆ÷µÄÃû³Æ»òÕßIPµØÖ·;
/home/cvsroot ......

LinuxÈëÃűʼÇÆß

Îļþϵͳ
ÎļþϵͳµÄ²Ù×÷¹Ûµã
--²Ù×÷ϵͳÓÃÓÚÃ÷È·´ÅÅÌ·ÖÇøÉϵÄÎļþµÄ·½·¨ºÍÊý¾Ý½á¹¹£¬¼´ÎļþÔÚ´ÅÅÌÉϵÄ×éÖ¯·½·¨
--LinuxʹÓÃ"ÐéÄâÎļþϵͳ"²Ù×÷¸÷ÖÖÀàÐ͵ÄÎļþϵͳ
ÎļþϵͳµÄÓû§¹Ûµã
--LiunxϵÄËùÓÐÎļþºÍĿ¼£¬ÕâЩÎļþ¼°Ä¿Â¼¹¹ÒÔÒ»¸öÊ÷×´µÄ½á¹¹£¬¹¹³ÉÁËLinuxÖеÄÎļþϵͳ
--LinuxÎļþ±ê×¼£¨Linux File System St ......

linux shutdown ÃüÁîÏê½â

¹¦ÄÜ˵Ã÷£ºÏµÍ³¹Ø»úÖ¸Áî¡£
¡¡¡¡Óï¡¡¡¡·¨£ºshutdown [-efFhknr][-t ÃëÊý][ʱ¼ä][¾¯¸æÐÅÏ¢]
¡¡¡¡²¹³ä˵Ã÷£ºshutdownÖ¸Áî¿ÉÒԹرÕËùÓгÌÐò£¬²¢ÒÀÓû§µÄÐèÒª£¬½øÐÐÖØпª»ú»ò¹Ø»úµÄ¶¯×÷¡£
¡¡¡¡²Î¡¡¡¡Êý£º
¡¡¡¡-c ¡¡µ±Ö´ÐÐ"shutdown -h 11:50"Ö¸Áîʱ£¬Ö»Òª°´+¼ü¾Í¿ÉÒÔÖжϹػúµÄÖ¸Áî¡£
¡¡¡¡-f ¡¡ÖØÐÂÆô¶¯Ê±²»Ö´ÐÐfsck¡£
¡¡ ......

ÖÆ×÷ARM Linux½»²æ±àÒë»·¾³

×ÏɫΪ¸üÕý
Ò»¡¢×¼±¸¹¤×÷
      
       Ê×ÏÈÐèҪһ̨ÔËÐÐLinux²Ù×÷ϵͳµÄPCÒÔÍê³ÉÎÒÃǵıàÒ빤×÷¡£
       Æä´ÎҪ׼±¸ÈçÏÂһЩԴÎļþ¡£
 
       1¡¢Ô´Îļþ×¼±¸
  &nbs ......

linuxϽâ¾ömysqlµÄ×Ö·û±àÂëÎÊÌâ

http://hi.baidu.com/emersonm/blog/item/ee230a36ca566fd7a2cc2b4a.html
linuxϽâ¾ömysqlµÄ×Ö·û±àÂëÎÊÌâ
2009-10-06 21:03
mysqlµÄ×Ö·û±àÂëÊDZȷ±ËöµÄÊÂÇ飬ÎÒÓõÄfedora11ĬÈÏ°²×°mysql5.1
$mysql --user=root --password=²¼À­²¼À­²¼À­
½øÈëºó
mysql>show variables like 'character%';     ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ