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

Linuxѧϰ£¨¶þ£© ¹²Ïí¿âµÄ°²×°

°²×°³ÌÐòËùÐèÒªµÄ¹²Ïí¿âʱÐèҪעÒâµÄÎÊÌâ¡£
ÆðÒò£º°²×°libsqlite3.so.0 ºó£¬Ê¹ÓÃldd test ʱ£¬È´ÕÒ²»µ½¸Ã¿âÎļþ¡£
        ÔÚʹÓÃcpptest¶ÔÔ­³ÌÐòÔËÐе¥Ôª²âÊÔʱ£¬·¢ÏÖ´íÎ󣬼´ÕÒ²»µ½¿âÎļþ¡£
°²×°Íêlibsqlite3.so.0ºó£¬ÆäÊÇ´æ´¢ÔÚusr/local/libµÄ¡£ËùÒÔÎÊÌâÔÚÓÚ£¬linuxϵÄ×°ÔسÌÐòloaderÊÇ·ñ»áËÑË÷Õâ¸ö·¾¶£¿
     °´ÕÕ/etc/ld.so.cacheÖеĶ¯Ì¬Á´½Ó¿âÀ´½øÐÐËÑË÷£¬¶ø/etc/ld.so.cacheÊǶÁÈ¡µÄ/etc/ld.so.configÖеÄÄÚÈÝÀ´´´½¨µÄ¡£ËùÒÔ¿ÉÒÔÔÚ/etc/ld.so.configÖÐÌí¼Ólibsqlite3.so.oµÄ·¾¶¡£Ìí¼ÓÖ®ºóÔËÐÐldconfig£¬¸üÐÂ/etc/ld.so.cache¡£
     ÔÙ´ÎÔËÐÐldd²é¿´Ê±£¬»òÕߣ¬ÔËÐÐcpptestµÄµ¥Ôª²âÊÔʱ£¬¾Íͨ¹ýÁË¡£
¶þ¡¢¹ØÓÚLinuxµÄ¶¯Ì¬¹²Ïí¿âµÄÉèÖÃ
¿ÉÖ´ÐгÌÐòÕÒ²»µ½ÒªÁ´½ÓµÄ¶¯Ì¬¹²Ïí¿â£¬ÕâÊÇLinuxÉÏÃæ±àÒëºÍÔËÐгÌÐòºÜÈÝÒ×Åöµ½µÄÎÊÌ⣬ͨ¹ýÉÏÃæµÄСÀý×Ó£¬ÎÒÃÇÒѾ­´óÖÂÁ˽⹲Ïí¿âµÄÒ»µã»ù±¾Ô­Àí£¬½ÓÏÂÀ´ÎÒÃÇҪ̽ÌÖÒ»ÏÂÔõôÉèÖóÌÐòÑ°ÕÒ¶¯Ì¬¹²Ïí¿âµÄÐÐΪ¡£
Linux²Ù×÷ϵͳÉÏÃæµÄ¶¯Ì¬¹²Ïí¿â´óÖ·ÖΪÈýÀࣺ
1¡¢²Ù×÷ϵͳ¼¶±ðµÄ¹²Ïí¿âºÍ»ù´¡µÄϵͳ¹¤¾ß¿â
±È·½Ëµlibc.so, libz.so, libpthread.soµÈµÈ£¬ÕâЩϵͳ¿â»á±»·ÅÔÚ/libºÍ/usr/libĿ¼ÏÂÃ棬Èç¹ûÊÇ64λ²Ù×÷ϵͳ£¬»¹»áÓÐ/lib64ºÍ/usr/lib64Ŀ¼¡£Èç¹û²Ù×÷ϵͳ´øÓÐͼÐνçÃ棬ÄÇô»¹»áÓÐ/usr/X11R6/libĿ¼£¬Èç¹ûÊÇ64λ²Ù×÷ϵͳ£¬»¹ÓÐ/usr/X11R6/lib64Ŀ¼¡£´ËÍ⻹¿ÉÄÜÓÐÆäËûÌض¨Linux°æ±¾µÄϵͳ¿âĿ¼¡£
ÕâЩϵͳ¿âÎļþµÄÍêÕûºÍ°æ±¾µÄÕýÈ·£¬È·±£ÁËLinuxÉÏÃæ¸÷ÖÖ³ÌÐòÄܹ»Õý³£µÄÔËÐС£
2¡¢Ó¦ÓóÌÐò¼¶±ðµÄϵͳ¹²Ïí¿â
²¢·Ç²Ù×÷ϵͳ×Ô´ø£¬µ«ÊÇ¿ÉÄܱ»ºÜ¶àÓ¦ÓóÌÐòËù¹²ÏíµÄ¿â£¬Ò»°ã»á±»·ÅÔÚ/usr/local/libºÍ/usr/local/lib64ÕâÁ½¸öĿ¼ÏÂÃæ¡£ºÜ¶àÄã×ÔÐбàÒë°²×°µÄ³ÌÐò¶¼»áÔÚ±àÒëµÄʱºò×Ô¶¯°Ñ/usr/local/lib¼ÓÈëgccµÄ-L²ÎÊý£¬¶øÔÚÔËÐеÄʱºò×Ô¶¯µ½/usr/local/libÏÂÃæȥѰÕÒ¹²Ïí¿â¡£
ÒÔÉÏÁ½ÀàµÄ¶¯Ì¬¹²Ïí¿â£¬Ó¦ÓóÌÐò»á×Ô¶¯Ñ°ÕÒµ½ËûÃÇ£¬²¢²»ÐèÒªÄã¶îÍâµÄÉèÖú͵£ÐÄ¡£ÕâÊÇΪʲôÄØ£¿ ÒòΪÒÔÉÏÕâЩĿ¼ĬÈϾͱ»¼ÓÈëµ½¶¯Ì¬Á´½Ó³ÌÐòµÄËÑË÷·¾¶ÀïÃæÁË¡£LinuxµÄϵͳ¹²Ïí¿âËÑË÷·¾¶¶¨ÒåÔÚ/etc/ld.so.confÕâ¸öÅäÖÃÎļþÀïÃæ¡£Õâ¸öÎļþµÄÄÚÈݸñʽ´óÖÂÈçÏ£º
/usr/X11R6/lib64   
/usr/X11R6/lib   
/usr/local/lib   
/lib64   
/lib   
/usr/lib64   
/


Ïà¹ØÎĵµ£º

linuxϵͳ³£ÓÃÃüÁî

£¨Ò»£©Îļþ¡¢Ä¿Â¼²Ù×÷ÃüÁî
1¡¢lsÃüÁî
¹¦ÄÜ£ºÏÔʾÎļþºÍĿ¼µÄÐÅÏ¢
ls¡¡ÒÔĬÈÏ·½Ê½ÏÔʾµ±Ç°Ä¿Â¼ÎļþÁбí
ls -a ÏÔʾËùÓÐÎļþ°üÀ¨Òþ²ØÎļþ
ls -l ÏÔʾÎļþÊôÐÔ£¬°üÀ¨´óС£¬ÈÕÆÚ£¬·ûºÅÁ¬½Ó£¬ÊÇ·ñ¿É¶Áд¼°ÊÇ·ñ¿ÉÖ´ÐÐ
ls -lh ÏÔʾÎļþµÄ´óС£¬ÒÔÈÝÒ×Àí½âµÄ¸ñʽӡ³öÎļþ´óС (ÀýÈç 1K 234M 2G)
ls -lt ÏÔʾÎļþ£¬°´ÕÕÐÞ¸ÄÊ ......

LinuxÖÐselectº¯Êýѧϰ¼°ÊµÀý±Ê¼Ç

UnixÖеĺ¯ÊýselectºÍpollÓÃÀ´£¬Ö§³ÖUnixÖÐI/O¸´ÓõŦÄÜ£¬ÔÚUnixÖÐI/OÄ£ÐÍ¿ÉÒÔ·ÖΪÒÔÒ»¼¸ÖÖ£º
£¨1£©×èÈûI/O
£¨2£©·Ç×èÈûI/O
£¨3£©I/O¸´Óã¨selectºÍpoll£©
£¨4£©ÐźÅÇý¶¯I/O(SIGIO)
£¨5£©Òì²½I/O
   ÆäÖУ¬ÏÖÔڱȽÏÁ÷ÐеÄI/OÄ£ÐÍÊÇ×èÈûI/OÄ£ÐÍ.×èÈûI/OÊǵ±Ó¦ÓóÌÐòºÍÄں˽»»»Êý¾Ýʱ£¬ÓÉÓÚÄں˻¹Ã»ÓÐ×¼±¸ºÃ ......

ÈçºÎÈýø³ÌÔÚLinuxºǫ́ÔËÐÐ

ÔÚLinuxÖУ¬Èç¹ûÒªÈýø³ÌÔÚºǫ́ÔËÐУ¬Ò»°ãÇé¿öÏ£¬ÎÒÃÇÔÚÃüÁîºóÃæ¼ÓÉÏ&¼´¿É£¬Êµ¼ÊÉÏ£¬ÕâÑùÊǽ«ÃüÁî·ÅÈëµ½Ò»¸ö×÷Òµ¶ÓÁÐÖÐÁË£º
[root@localhost /]# ./test.sh &
[1] 17208
È»ºóÎÒÃǾͿÉÒÔÓÃÒÔÏÂÃüÁî½øÐв鿴£º
[root@localhost /]# jobs -l
[1]  17208 Running ./test.sh &
¶ÔÓÚÒѾ­ÔÚǰִ̨ÐеÄÃüÁî ......

LINUX ´íÎó´úÂë errno

ÏÂÃæÕâ¸öÀý×ÓÁгöÁËËùÓÐϵͳ¶¨ÒåµÄ´íÎó´úÂë¼°´íÎóÃèÊö
Ô´´úÂëÊÇ£º
/************¹ØÓÚ±¾Îĵµ********************************************
*filename: strerror.c
*purpose: ÁгöÁËϵͳ¶¨ÒåµÄËùÓдíÎó´úÂë¼°ÃèÊö
*wrote by: zhoulifa(zhoulifa@163.com) ÖÜÁ¢·¢(http://zhoulifa.bokee.com)
Linux°®ºÃÕß Linux֪ʶ´«²¥ ......

linuxÏÂÖ´ÐÐphpÎļþ·¢ÏÖCould not open input file

ÔÚlinuxÏÂͨ¹ýsvn¸üÐÂÁËÒ»¸öphpÎļþ£¬Ä¿µÄÊÇÏëͨ¹ýÖ´ÐÐÕâ¸öÎļþÀ´¶ÁÊý¾Ý²åÈëµ½Êý¾Ý¿â¡£ÔÚÆäÖеļ¸Ì¨Ö´ÐÐûÓÐÎÊÌ⣬ÆäÖÐһ̨¾Í·¢ÏÖÁËCould not open input fileÕâ¸ö´íÎ󣬺óÀ´²éÕÒ×ÊÁϲŷ¢ÏÖÔ­À´ÊÇÎļþ¸ñʽµÄÎÊÌ⣬³ö´íʱÎļþ¸ñʽÊÇdos£¬¿ÉÒÔÔÚviÖÐÓÃ:set ffÀ´²é¿´£¬Èç¹ûÊÇdos¸ñʽ£¬ÄÇôÔòÓÃ:set ff=unixÀ´ÉèÖÃеĸñʽ£¬ÕâÑ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ