ÔÚLinuxϱàдDaemon
ÔÚLinuxϱàдDaemon
ÔÚLinux£¨ÒÔRedhat Linux Enterprise Edition 5.3ΪÀý£©Ï£¬ÓÐʱÐèÒª±àдService¡£ServiceÒ²ÊdzÌÐò£¬Ò»°ãËæϵͳÆô¶¯Óû§²»¸ÉÔ¤¾Í²»Í˳öµÄ³ÌÐò£¬¿ÉÒÔ³ÆΪService¡£LinuxϵÄServiceÒ»°ã³ÆΪDaemon¡£
ÒÔÉÏÊǹãÒåµÄServiceµÄ¶¨Òå¡£LinuxϵķþÎñÒ»°ã·ÅÔÚ/etc/init.dÎļþ¼ÐÏ¡£ä¯ÀÀÒ»ÏÂÕâ¸öÎļþ¼ÐϵÄÎļþ£¬¿ÉÒÔ·¢ÏÖÔÚLinuxϱàдServiceÒ»°ã×ñѵÄÔÔò¡£
LinuxϱàдServiceÒ»°ã×ñѵÄÔÔò
1£©ÕæÕýÔËÐеÄServiceÒ»°ã·ÅÔÚij¸öbinĿ¼Ï£¨/bin£¬/usr/bin£¬etc£©¡£
2£©/etc/init.dÎļþ¼ÐÏÂÒ»°ãÊÇshell½Å±¾£¬ÓÃÀ´¿ØÖÆbinĿ¼ÏµÄService¡£
3£©/etc/init.dÎļþ¼ÐϵÄshell½Å±¾Ò»°ã½ÓÊÜÖÁÉÙÁ½¸ö²ÎÊý£¬startºÍstop¡£»¹ÓÐÆäËû³£ÓõĿÉÑ¡²ÎÊýÈçstatus£¬reload£¬restart£¬µÈ¡£
4£©/etc/init.dÎļþ¼ÐϵÄshell½Å±¾ÖÁÉÙ°üÀ¨Á½ÐÐ×¢ÊÍ£¬Ò»ÐиæËßchkconfig´Ë·þÎñÔËÐеÄrunlevel£¬Æô¶¯ÓÅÏȼ¶£¬½áÊøÓÅÏȼ¶¡£Ò»ÐиæËßchkconfig´Ë·þÎñµÄÃèÊö¡£
LinuxµÄÆô¶¯¹ý³ÌºÍRunLevel
ÒªÀí½âLinuxµÄÆô¶¯¹ý³ÌºÍRunLevel£¬¿ÉÒÔÏÈä¯ÀÀÒ»ÏÂ/etc/inittabÎļþ¡£ÔÚ/etc/inittabÖж¨ÒåÁËÏÂÃæ7ÖÖRunLevel¡£Ã¿¸öService¿ÉÒÔÉèÖÃ×Ô¼ºÔÚÄĸöRunLevelÏÂÔËÐС£¿ÉÒÔµ÷ÓÃ/sbin/init <runlevel>½øÈëÏàÓ¦µÄRunLevel£¬±ÈÈçÔËÐÐ/sbin/init 6¾Í»áµ¼ÖÂϵͳÖØÆô¡£Èç¹ûÔÚij¸öRunLevelÏÂij¸ö·þÎñ²»ÄÜÆô¶¯£¬µ¼ÖÂϵͳÆô¶¯Ê§°Ü£¬¿ÉÒÔ½øÈëûÓÐÅäÖô˷þÎñµÄRunLevelÀ´½ûÓûòÐ޸Ĵ˷þÎñ£¨ÓеãÀàËÆWindowsϵݲȫģʽ£©¡£
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
/etc/inittabÎļþÏ»¹¶¨ÒåÁËȱʡRunLevel¡£ÈçÏ£¬´ú±íȱʡRunLevelÊÇ5¡£
id:5:initdefault:
ÔÚ/etcÎļþ¼ÐÏ£¬Ö´ÐÐls -d rc*£¬»áÁгöÏÂÃæÕâЩÎļþºÍĿ¼£º
rc rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d rc.d rc.local rc.sysinit
rcÊÇÒ»¸ö½Å±¾£¬ÔÚ/etc/inittabÖУ¬»á¸ù¾ÝRunLevelÖ´ÐÐrc <runlevel>¡£rc½Å±¾»áµ½ÏàÓ¦µÄrcN.dÖÐÈ¥Ö´ÐÐÏÂÃæµÄ½Å±¾¡£r
Ïà¹ØÎĵµ£º
Ò»¡¢ÒýÑÔ£º
±¾ÎĵµµÄÄÚÈݴ󲿷ÝÄÚÈݶ¼ÊÇ´ÓÍøÉÏÊÕ¼¯¶øÀ´£¬È»ºóÅäºÏһЩеĽØͼ£¨Äں˰汾£ºV2.4.19£©¡£ÔÚÿһÅäÖÃÏîºó»áÓÐÒ»¸öÑ¡ÔñÖ¸ÄϵIJ¿·Ý£¬ÓÃÀ´Ö¸µ¼´ó¼ÒÔõôÑù¸ù¾Ý×Ô¼ºµÄÇé¿öÀ´×öÏàÓ¦µÄÑ¡Ôñ£»»¹ÓÐÔÚÿһ¸ö´óÏîºÍÎĵµµÄ×îºó»áÓÐÒ»¸ö¾Ñé̸£¬ËüÊÇһЩ¸ßÊÖÃÇÔÚÓ¦¶ÔÎÊÌâºÍ´¦ÀíÌØÓÐÓ²¼þʱµÄһЩ¾Ñ飨Õâ¸ö»¹µ ......
¡¾Îĵµ´´½¨ÈÕÆÚ£º2010-05-30¡¿
001 // P122: Èý¡¢ÉÏ»úÌâ 3
002
003 // test03-03.c
004
005 // Header files included.
006 #include <stdio.h>
00 ......
LinuxÏÂC++¿ª·¢¹¤¾ß½éÉÜ
¡¡¡¡¸ÅÊö
¡¡¡¡¾ÍC£«£«¿ª·¢¹¤¾ß¶øÑÔ£¬ÓëWindowsÏÂ΢Èí£¨VC£¬ VS2005µÈ£©Ò»Í³ÌìÏÂÏà±È£¬Linux/UnixÏÂC£«£«¿ª·¢£¬¿ÉνÎ廨°ËÃÅ£¬¸÷ʽ¸÷Ñù¡£Emacs, vi, eclipse, anjuta£¬kdevelopµÈ²ã³ö²»Çî¡£
¡¡¡¡WindowsÏ£¬¿ª·¢¹¤¾ß¶àÒÔ¼¯³É¿ª·¢»·¾³IDEµÄÐÎʽչÏÖ¸ø×îÖÕÓû§¡£ÀýÈ磬VS2005¼¯³ ......
Ô´´ÎÄÕ£¬×ªÔØÇë×¢Ã÷³ö´¦£¬Ð»Ð»£¡
×÷ÕߣºÇåÁÖ£¬²©¿ÍÃû£º·É¿Õ¾²¶É
ÔÚwindowsÏÂ×ö¹ý·´»ã±àµÄÈË£¬¹À¼Æ¶¼ÈÏʶollydbgÕâÑùÈí¼þ¡£Ã»´í£¬ollydbgÊÇwindowÏÂ×öÆƽâÈí¼þºÍ·´»ã±àÈí¼þÈËÊ¿µÄÀûÆ÷¡£ÏÖÔÚ½éÉÜÒ»¸öºÍollydbgÒ»ÑùµÄÈí¼þ£¬µ«ËüÊÇÔÚlinuxÏÂÔËÐÐµÄ --- EDG¡£
Õâ¸öÈí¼þµÄ×÷Õß±¾À´ÊǸöÈí¼þ·´»ã±àÈËÊ¿£¬ÔÚwindowsϾ³£·´»ã±à ......
M. Tim Jones, ¹ËÎʹ¤³Ìʦ, Emulex Corp.
2009 Äê 4 ÔÂ 07 ÈÕ
Linux® ÄÚºËʹÓà GNU Compiler Collection (GCC) Ì×¼þµÄ¼¸¸öÌØÊ⹦ÄÜ¡£ÕâЩ¹¦ÄÜ°üÀ¨Ìṩ¿ì½Ý·½Ê½ºÍ¼ò»¯ÒÔ¼°Ïò±àÒëÆ÷ÌṩÓÅ»¯ÌáʾµÈµÈ¡£Á˽âÕâЩÌØÊâµÄ GCC ÌØÐÔ£¬Ñ§Ï°ÈçºÎÔÚ Linux ÄÚºËÖÐʹÓÃËüÃÇ¡£
GCC ºÍ Linux ÊdzöÉ«µÄ×éºÏ¡£¾¡¹ÜËüÃÇÊǶÀÁ¢µÄÈí¼þ ......