linuxÏÂconfigureÃüÁîÏêϸ½éÉÜ
Linux»·¾³ÏµÄÈí¼þ°²×°£¬²¢²»ÊÇÒ»¼þÈÝÒ×µÄÊÂÇé;Èç¹ûͨ¹ýÔ´´úÂë±àÒëºóÔÚ°²×°£¬µ±È»ÊÂÇé¾Í¸üΪ¸´ÔÓһЩ;ÏÖÔÚ°²×°¸÷ÖÖÈí¼þµÄ½Ì³Ì¶¼·Ç³£ÆÕ±é;µ«
Íò±ä²»ÀëÆäÖУ¬¶Ô»ù´¡ÖªÊ¶µÄÔúʵÕÆÎÕ£¬°²×°¸÷ÖÖÈí¼þµÄÎÊÌâ¾ÍÓÈжø½âÁË¡£Configure½Å±¾ÅäÖù¤¾ß¾ÍÊÇ»ù´¡Ö®Ò»£¬ËüÊÇautoconfµÄ¹¤¾ßµÄ»ù±¾
Ó¦Óá£
ÓëһЩ¼¼ÇÉÏà±È£¬ConfigureÏԵûù´¡Ò»Ð©£¬µ±È»Ê¹ÓúÍѧϰÆðÀ´¾ÍÏԵÿÝÔ﷦ζһЩ£¬µ±È»Òª³ÉΪ¸ßÊÖ£¬¶Ô»ù´¡µÄÊìϤ²»Äܳ¬Ô½Å¶¡£
Ϊ´ËÎÒתÔØÁËһƪ¹ØÓÚConfigureÑ¡ÏîÅäÖõÄÏêϸ½éÉÜ¡£¹©´ó¼Ò²Î¿¼
'configure'½Å±¾ÓдóÁ¿µÄÃüÁîÐÐÑ¡Ïî.¶Ô²»Í¬µÄÈí¼þ°üÀ´Ëµ,ÕâЩѡÏî¿ÉÄÜ»áÓб仯,µ«ÊÇÐí¶à»ù±¾µÄÑ¡ÏîÊDz»»á¸Ä±äµÄ.´øÉÏ'--
help'Ñ¡ÏîÖ´ÐÐ'configure'½Å±¾¿ÉÒÔ¿´µ½¿ÉÓõÄËùÓÐÑ¡Ïî.¾¡¹ÜÐí¶àÑ¡ÏîÊǺÜÉÙÓõ½µÄ,µ«Êǵ±ÄãΪÁËÌØÊâµÄÐèÇó¶øconfigureÒ»¸ö°ü
ʱ,ÖªµÀËûÃǵĴæÔÚÊǺÜÓÐÒæ´¦µÄ.ÏÂÃæ¶Ôÿһ¸öÑ¡Ïî½øÐмòÂԵĽéÉÜ:
--cache-file=FILE
'configure'»áÔÚÄãµÄϵͳÉϲâÊÔ´æÔÚµÄÌØÐÔ(»òÕßbug!).ΪÁ˼ÓËÙËæºó½øÐеÄÅäÖÃ,²âÊԵĽá¹û»á´æ´¢ÔÚÒ»¸öcache
fileÀï.µ±configureÒ»¸öÿ¸ö×ÓÊ÷ÀﶼÓÐ'configure'½Å±¾µÄ¸´ÔÓµÄÔ´ÂëÊ÷ʱ,Ò»¸öºÜºÃµÄcache fileµÄ´æÔÚ»áÓкܴó°ïÖú.
--help
Êä³ö°ïÖúÐÅÏ¢.¼´Ê¹ÊÇÓоÑéµÄÓû§Ò²Å¼¶ûÐèҪʹÓÃʹÓÃ'--help'Ñ¡Ïî,ÒòΪһ¸ö¸´ÔÓµÄÏîÄ¿»á°üº¬¸½¼ÓµÄÑ¡Ïî.ÀýÈç,GCC°üÀïµÄ'configure'½Å±¾¾Í°üº¬ÁËÔÊÐíÄã¿ØÖÆÊÇ·ñÉú³ÉºÍÔÚGCCÖÐʹÓÃGNU»ã±àÆ÷µÄÑ¡Ïî.
--no-create
'configure'ÖеÄÒ»¸öÖ÷Òªº¯Êý»áÖÆ×÷Êä³öÎļþ.´ËÑ¡Ïî×èÖ¹'configure'Éú³ÉÕâ¸öÎļþ.Äã¿ÉÒÔÈÏΪÕâÊÇÒ»ÖÖÑÝÏ°(dry run),¾¡¹Ü»º´æ(cache)ÈÔÈ»±»¸ÄдÁË.
--quiet
--silent
µ±'configure'½øÐÐËûµÄ²âÊÔʱ,»áÊä³ö¼òÒªµÄÐÅÏ¢À´¸æËßÓû§ÕýÔÚ×÷ʲô.ÕâÑù×÷ÊÇÒòΪ'configure'¿ÉÄÜ»á±È½ÏÂý,ûÓÐÕâÖÖÊä³ö
µÄ»°Óû§½«»á±»ÈÓÔÚÒ»ÅÔÒÉ»óÕýÔÚ·¢Éúʲô.ʹÓÃÕâÁ½¸öÑ¡ÏîÖеÄÈκÎÒ»¸ö¶¼»á°ÑÄãÈÓµ½Ò»ÅÔ.(Òë×¢:ÕâÁ½¾ä»°±È½ÏÓÐÒâ˼,ÔÎÄÊÇÕâÑùµÄ:If there
was no such output, the user would be left wondering what is happening.
By using this option, you too can be left wondering!)
--version
´òÓ¡ÓÃÀ´²úÉú'configure'½Å±¾µÄAutoconfµÄ°æ±¾ºÅ.
--prefix=PEWFIX
'--prefix'ÊÇ×î³£ÓõÄÑ¡Ïî.ÖÆ×÷³öµÄ'Makefile'»á²é¿´Ëæ´ËÑ¡Ïî´«µÝµÄ²ÎÊý,µ±Ò»¸ö°üÔÚ°²×°Ê±¿ÉÒÔ³¹µ×µÄÖØа²ÖÃËûµÄ½á¹¹¶ÀÁ¢²¿
·Ö. ¾ÙÒ»¸öÀý×Ó,µ±°²×°Ò»¸ö°ü,ÀýÈç˵Emacs,ÏÂÃæµÄÃüÁ»áʹEmacs Lisp file±»°²×°µ½"/opt/gnu/share
Ïà¹ØÎĵµ£º
˵Ã÷
±Ê¼ÇÊÊÓÃÓÚLinuxµÄ2.6.10ÒÔºóµÄÄںˡ£
±Ê¼ÇÒÔLinux
Device
Driver3ÌṩµÄscull³ÌÐò(scullĿ¼ÖеÄmain.cºÍscull.h)Ϊ¼Ç¼Ö÷Ïߣ¬²¢ÒÔ¸ÃÇý¶¯³ÌÐòÖеĸ÷ÖÖϵͳµ÷Óúͺ¯Êýµ÷ÓÃÁ÷³ÌΪ¼Ç
¼˳Ðò¡£±ÈÈ磬module_init( )ºÍmodule_exit(
)ΪÏà¶ÔÓ¦µÄÒ»¶Ôϵͳµ÷Óã¬Ò»°ãÊé¼®Öж¼»á·ÅÔÚÒ»ÆðÌÖÂÛ£¬µ«ÊDZ¾±Ê¼ÇÈ´²»»áÕâÑù£¬¶øÊ ......
ϵͳµ÷ÓÃÊÇÓ¦ÓóÌʽºÍ²Ù×÷ϵͳÄÚºËÖ®¼äµÄ¹¦Äܽӿڡ£ÆäÖ÷ҪĿµÄÊÇʹµÃÓû§
ÄÜʹÓòÙ×÷ϵͳÌṩµÄÓйØÉ豸¹ÜÀí¡¢ÊäÈë/ÊäÈëϵͳ¡¢ÎļþϵͳºÍ½ø³Ì¿ØÖÆ¡¢
ͨÐż°´æ´¢¹ÜÀíµÈ·½ÃæµÄ¹¦ÄÜ£¬¶ø²»±ØÁ˽âϵͳ³ÌʽµÄÄÚ²¿½á¹¹ºÍÓйØÓ²¼þϸ
½Ú£¬´Ó¶øÆðµ½¼õÇáÓû§¸ºµ£ºÍ±£»¤ÏµÍ³¼°Ìá¸ß×ÊÔ´ÀûÓÃÂʵÄ×÷Óᣠ......
1.ʱ¼ä±íʾ
ÔÚ³ÌÐòµ±ÖÐ,ÎÒÃǾ³£ÒªÊä³öϵͳµ±Ç°µÄʱ¼ä,±ÈÈçÎÒÃÇʹÓÃdateÃüÁîµÄÊä³ö½á¹û¡£Õâ¸öʱºòÎÒÃÇ¿ÉÒÔʹÓÃÏÂÃæÁ½¸öº¯Êý
time_t time(time_t *tloc); //ʱ¼ä¾«¶ÈΪÃë
char *ctime(const time_ ......
l
ÔÚ
Linux
ϱàдÆÕͨ¿ÉÖ´ÐÐÎļþµÄÃüÁ
gcc –o
Ä¿±êÎļþÃû
Ô´ÎļþÃû£¨ÁÐ±í£©
Èç¹û¹¤³Ì°üº¬¶à¸ö
.c
ºÍ
.h
ÄÇôÔÚÔ´ÎļþÃûÁбíÖÐÖ»ÁгöËùÓеÄ
.c
Îļþ
Àý£º¹¤³ÌÎļþ¼ÐÀïÓÐ
des.c
hash.c
main.c
des.h
hash ......
### Section 1: Global Environment
//µ±·þÎñÆ÷ÏìÓ¦Ö÷»úÍ·£¨header£©ÐÅϢʱÏÔʾApacheµÄ°æ±¾ºÍ²Ù×÷ϵͳÃû³Æ
ServerTokens OS
//ÉèÖ÷þÎñÆ÷µÄ¸ùĿ¼
ServerRoot "/etc/httpd"
#ScoreBoardFile run/httpd.scoreboard
//ÉèÖÃÔËÐÐApacheʱʹÓõÄPidFileµÄ·¾¶
PidFile run/httpd.pid
//Èô300ÃëºóûÓÐÊÕµ½»òËͳöÈκÎÊ ......