ÕÆÎÕLinux±à³ÌµÄ10¸ö²½Öè
×ölinux cÓïÑÔ¿ª·¢ÓÐһСÕó×ÓÁË£¬ÔÚÕâ±ß×Ô¼º×ܽáÁËЩÐĵã¬ÏàÐÅÄÜÈò»¶®µÃLinux±à³ÌµÄÈËÂýÂý²½ÈëLinuxµîÌá£ÓÐÈκβ»¶Ô»ò²»×¼È·Ö®´¦»¶ÓÌÖÂÛ¡£
1. °²×° linux ²Ù×÷ϵͳ
¼ÈȻҪѧϰlinuxϵÄcÓïÑÔ¿ª·¢£¬ÄÇô°²×°¸ölinux²Ù×÷ϵͳÊDZØÐëµÄ¡£½¨Òé°²×°Ubuntu£¬ÕâÊÇÎÒÄ¿Ç°¼û¹ý½çÃæ×îÓѺõÄlinux²Ù×÷ϵͳÁË¡£¹ØÓÚÈçºÎʹÓÃUbuntuÒÔ¼°ÔÚÆäÉÏ×÷¿ª·¢£¬¿É²Î¿¼ÎÒµÄÁíÍâһƪ±Ö×÷¡¶UbuntuʹÓÃÐĵá·£ºhttp://download.csdn.net/source/2206289
2. ÊìϤ linux ²Ù×÷ϵͳϵÄÃüÁî
LinuxÌṩÁË´óÁ¿µÄÃüÁÀûÓÃËü¿ÉÒÔÓÐЧµØÍê³É´óÁ¿µÄ¹¤×÷£¬Èç´ÅÅ̲Ù×÷¡¢Îļþ´æÈ¡¡¢Ä¿Â¼²Ù×÷¡¢½ø³Ì¹ÜÀí¡¢ÎļþȨÏÞÉ趨µÈ¡£ËùÒÔ£¬ÔÚLinuxϵͳÉϹ¤×÷Àë²»¿ªÊ¹ÓÃϵͳÌṩµÄÃüÁî¡£ÒªÏëÕæÕýÀí½âLinuxϵͳ£¬¾Í±ØÐë´ÓLinuxÃüÁîѧÆð£¬Í¨¹ý»ù´¡µÄÃüÁîѧϰ¿ÉÒÔ½øÒ»²½Àí½âLinuxϵͳ¡£
¹ØÓÚlinuxϵÄÃüÁ»¶Ó²Î¿¼ÎÒblogÉÏһƪÎÄÕ¡¶LinuxÃüÁîÕûÀí¡·£ºhttp://blog.csdn.net/sikinzen/archive/2010/04/19/5503769.aspx
3. ѧ»áÒ»ÖÖÔ´Âë±à¼Æ÷
ºÜ¶à´óÅ£ÍƼöʹÓà vim/emacsÖ®ÀàµÄ¹¤¾ß£¬µ«ÎÒ»¹ÊÇÓÃ×Ų»Ï°¹ß£¬Ó¦¸ÃÊÇÎÒÄÜÁ¦Î´µ½¡£ÎÒ¸öÈ˱ȽÏϲ»¶µÄ¿ª·¢·½Ê½ÊÇ£ºÔÚwindowsϱ༴úÂ룬ÔÚlinuxϱàÒë¡£
ÎÒ×Ô¼º·Ç³£Ï²»¶ÓÃSourceInsightÀ´±à¼´úÂ룬Õâ¸ö¹¤¾ßµÄʹÓÿɲο¼ÎÒblogÉÏһƪÎÄÕ¡¶Source InsightµÄÓ¦Óü¼ÇÉ¡¢ºê¹¦ÄÜ¡·£ºhttp://blog.csdn.net/sikinzen/archive/2010/04/09/5468511.aspx
4. ÕÆÎÕgccºÍgdb
ÕÆÎÕgccµÄ»ù±¾Ó÷¨£¬²¢ÇÒ»áÓÃgdbÀ´µ÷ÊÔ³ÌÐò¡£
5. Óúà C ÓïÑÔ
¹¤×÷Öз¢ÏÖ£ºCÓïÑÔ´ó¼Ò¶¼»á£¬µ«ºËÐÄ˼Ïë¾Í²»Ò»¶¨¶¼ÄÜÀí»á¡£ÎÒ×Ô¼º¾õµÃÒ²Ö»ÊÇÃþµ½ÁËÞ¶£¬»¹ÐèҪʵ¼ù¶ÍÁ¶¡£
ÍƼö£º¡¶CÏÝÚåÓëȱÏÝ¡·¡¢¡¶Cר¼Ò±à³Ì¡·¡¢¡¶C³ÌÐòÉè¼ÆÓïÑÔ¡·¡£
6. ѧ»áдmakefile£¬ÒÔ¼°ÓÃËüÀ´×éÖ¯Ô´Âë
µ±ÏîÄ¿´óÁ˺ó£¬ÓÃÃüÁîÐÐÖð¸öÖð¸ö±àÒë¡¢linkÎļþµÄ¹¤×÷Á¿ÊǷdz£¿Ö²ÀµÄ£¬Õâʱºòmake¾ÍÆð×÷Ó㬼´Ê¹ÊǺÜСµÄÏîÄ¿£¬ÎÒÈÏΪҲӦ¸Ã²ÉÓÃmake×éÖ¯¡£
¹ØÓÚmakefile£¬Çë²Î¿¼ÍøÉÏÎÄÕ¡¶¸úÎÒÒ»ÆðдMakefile¡·»ò¡¶GNU makeÖÐÎÄÊֲᡷ¡£ÕâÁ½ÆªÎÄÕ¶¼Ï൱µÃºÃ¡£
7. LinuxÓ¦Óñà³Ì
ÖÕÓÚ˵µ½ÕýÌâÁË£¬ºÇºÇ¡£
LinuxÉϵÄÓ¦Óñà³Ì»ù±¾ÉÏÁ½±¾Êé¾Í¸ã¶¨ÁË£º¡¶APUE¡·ºÍ¡¶UNP¡·£¬Ç°Õ߶ÍÁ¶»ù±¾¹¦£¬ºóÕßѧϰÍøÂç±à³Ì¡£
Õâ±ßÎÒÖ±½ÓÒýÓÃÍøÉÏijλÏÈÉúµÄÆÀÂÛ£º
Èç¹ûÏëѧϰUNIX/LINUXµÄ±à³Ì£¬¡¶APUE¡·¾ø¶Ô¾µäµÄ½Ì²Ä£¬¼ÓÉîһϹ¦µ×£¬Ñ§Ï°¡¶UNP¡·µÄµÚ¶þ¾í¡£ÕâÑù»ù±¾ÉÏϵͳ·½ÃæµÄ¾Í¿ÉÒÔÕÆÎÕÁË¡£ È»ºóÔÙ¿´Douglus E. ComerµÄ¡¶ÓÃTCP/IP½øÐÐÍø¼Ê»¥
Ïà¹ØÎĵµ£º
zipÃüÁîµÄ»ù±¾Ó÷¨ÊÇ£ºzip [²ÎÊý] [Îļþ1] [Îļþ2]
¼òµ¥µÄÀý×Ó£º
°Ñ±¾Ä¿Â¼ÏµÄtestÎļþ´ò°ü³Étest.zipÎļþ£ºzip test.zip test/* £¬Èç¹ûÔÚÎļþÖÐÓþø¶ÔµÄ·¾¶£¬ÄÇôÔÚѹËõÎļþÖÐÒ²ÊǾø¶Ô·¾¶¡£¾ÍÊÇ˵£¬Èç¹ûÄã zip test.zip /hom ......
[¾¹ý°²×°²âÊԳɹ¦µÄ·½·¨from CYBEND ]
µÚÒ»²½£ºÏµÍ³ÓëÈí¼þµÄ×¼±¸
ϵͳ°æ±¾ redhat enterprise linux 5 ,Äں˰汾 2.6.18
µÚ¶þ²½£ºÈí¼þ°üµÄ×¼±¸
httpdÈí¼þ°ü£ºhttpd-2.2.8.tar.bz2
mysqlÈí¼þ°ü´Ómysql¹Ù·½ÍøÕ¾ÏÂÔØ£¬ÎÒÑ¡ÓõÄÊÇehel5µÄrpm°ü
MySQL-server-community-5.0.51a-0.rhel5.i386.rpm
MySQL-client-community ......
ÈíʵʱºÍӲʵʱ£¬ÈíʵʱÊÇ˵Υ·´Á˳ÌÐòÖ´ÐеÄdeadlineÒ²²»»áÓÐÖÂÃüµÄ´íÎ󣬶øӲʵʱµÄdeadlineÊÇдËÀµÄ¡£
ºÜ¶àlinuxÓÐӲʵʱµÄ²¹¶¡£¬ÈçMontaVista¡£
ÓÐÔ´¾§ÕñºÍÎÞÔ´¾§Õñ£¬ÓÐÔ´µÄ½Ðosllicator£¬ÎÞÔ´µÄ½Ðcrystal¡£
uclinuxÊǾ²Ì¬±àÒëµÄ£¬Ã»ÓÐmmu»úÖÆ¡£
x86µÄҪѡxterm...
serveu¼ÙÉè·þÎñÆ÷ + linuxÓÃsftp£¨Í¨¹ýssh ......
±¾ÎĽ«ÃèÊöÏ̵߳ÄÒ»¸ö±È½ÏÖØÒªµÄÒ»·½Ã棺Ïß³Ì˽ÓÐÊý¾Ý£¬ÈçÏ´úÂ룺
#include <pthread.h>
#include <unistd.h>
#include <stdio.h>
pthread_key_t kKey = 0;
void * ThreadProc(void* arg)
{
char* a = (char*)(arg);
sleep(2);
pthread_setspecific(kKey, a);
......
Ò»¡¢ ldconfig£º
¡¡¡¡LinuxϵͳÖУ¬ÎªÁËÈö¯Ì¬Á´½Ó¿âΪϵͳËù¹²Ïí£¬»¹ÐèÔËÐж¯Ì¬Á´½Ó¿âµÄ¹ÜÀíÃüÁî——ldconfig.
¡¡¡¡1. ldconfigÃüÁîµÄÓÃ;£ºÖ÷ÒªÊÇÔÚĬÈÏËÑѰĿ¼£¨/libºÍ/usr/lib£©ÒÔ¼°¶¯Ì¬¿âÅäÖÃÎļþ/etc/ld.so.confÄÚËùÁеÄĿ¼Ï£¬ËÑË÷³ö¿É¹²ÏíµÄ¶¯Ì¬Á´½Ó¿â£¨¸ñʽÈçÇ°½éÉÜ£¬lib*.so*£©£¬½ø¶ø´´½¨³ö¶¯Ì¬×°È ......