ÔÚ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
Ïà¹ØÎĵµ£º
example:
zip -q -r html.zip html
²ÎÊý˵Ã÷£º
Óï¡¡¡¡·¨£ºzip [-AcdDfFghjJKlLmoqrSTuvVwXyz$][-b <¹¤×÷Ŀ¼>][-ll][-n <×Öβ×Ö·û´®>][-t <ÈÕÆÚʱ¼ä>][-<ѹËõЧÂÊ>][ѹËõÎļþ][Îļþ...][-i <·¶±¾Ñùʽ>][-x <·¶±¾Ñùʽ>]
²¹³ä˵Ã÷£ºzipÊǸöʹÓù㷺µÄѹËõ³ÌÐò£¬Îļþ¾ËüѹËõºó»áÁíÍ ......
ÔÚѧϰÓ빤×÷Öж¼Àë²»¿ªLinux£¬ÄÇô¸É´à¾ÍÖ»×°Ò»¸öLinuxËãÁË£¬²»¹ý»¹ÊÇ»áÓÐÓõ½WindowsµÄÇé¿ö£¬±ÈÈç˵дÂÛÎÄ°¡£¬Ä³Ð©×¨ÒµÈí¼þ°¡Ê²Ã´µÄ¡£²»ÒªËµLinuxÏÂʲô¶¼ÓУ¬ºÇºÇ£¬·´ÕýÎÒÊDz»¸ÒÓÃLinuxϵÄofficeµÄ£¬´òÓ¡É綼ÓÃMS word¡£¶øwordÎĵµµ½ÁËopenofficeÖ®Á÷µÄÏÂÃæ¾ÍÊÇ»á³öÏÖǧÆæ°Ù¹ÖµÄÏÖÏó¡£
......
do_exit() Function
-----------------------------------------------------------------------
kernel/exit.c
707 NORET_TYPE void do_exit(long code)
708 {
709 struct task_struct *tsk = current;
710
711 if (unlikely(in_interrupt()))
712 panic("Aiee, killing interrupt handler!");
713 if ......
ÎÒÓõÄLinuxϵͳÊÇUbuntu 10.04
Ê×ÏÈ, °²×°wxWidgets 2.8. Ä¿Ç°wxWidgetsÓÐÁ½¸öÎȶ¨°æ±¾, 2.6ºÍ2.8, ÎÒÃÇÑ¡×îеÄ. ´ò¿ª “Ubuntu
Èí¼þÖÐÐÄ”, ÔÚËÑË÷¿òÀïÊäÈë “wxWidgets”, °ÑÏÂÃ漸¸öÃû×ÖÒÔ”wxWidgets Cross-platform C++ GUI
toolkit”¿ªÍ·µÄÈ«²¿°²×°. ×°Íêºó, ´ò¿ªÒ»¸öÖÕ¶Ë, ÊäÈ ......