¸ß¼¶Linux³ÌÐòÉè¼ÆµÚÈýÕ£º½ø³Ì
ÿ¸ö½ø³Ì¶¼ÓÐÒ»¸öΨһµÄ½ø³ÌºÅ¡£ ÿ¸ö½ø³Ì¶¼ÓÐÒ»¸ö¸¸½ø³Ì¡£ ϵͳÖеĽø³ÌÒÔÊ÷µÄÐÎʽ×éÖ¯£¬init½ø³Ì(½ø³ÌºÅΪ1)×÷Ϊ¸ù¡£ ½ø³Ì0Êǵ÷¶È½ø³Ì£¬Ã»ÓгÌÐòÓëÖ®¶ÔÓ¦£¬ÊÇÄں˵ÄÒ»²¿·Ö¡£ ½ø³Ì1ÊÇinit½ø³Ì£¬ÊÇÔÚϵͳÆô¶¯µÄ½×¶ÎÓÉÄÚºËÆô¶¯µÄ£¬¶ÔÓ¦/sbin/init³ÌÐò£¬ÊÇÆÕͨµÄÓû§½ø³Ì¡£ ³ÌÐòÖпÉÒÔͨ¹ýgetpid()µÃµ½½ø³ÌºÅ£¬Í¨¹ýgetppid()µÃµ½¸¸½ø³ÌµÄ½ø³ÌºÅ¡£ #include #include int main () { printf (¡°The process ID is %d\n¡±, (int) getpid ()); printf (¡°The parent process ID is %d\n¡±, (int) getppid ()); return 0; } ͨ¹ýpsÃüÁî¿ÉÒԵõ½ÏµÍ³ÖÐÔËÐеÄËùÓнø³Ì¡£ ͨ¹ýkillÃüÁî¿ÉÒÔɱµôij¸ö½ø³Ì¡£ 1¡¢´´½¨½ø³Ì 1.1¡¢systemº¯Êý systemº¯ÊýÌṩÁËÒ»ÖÖÔÚ³ÌÐòÖÐÔËÐÐÒ»¸öÃüÁîµÄ¼òµ¥·½·¨¡£ #include int main () { int return_value; return_value = system (¡°ls -l /¡±); return return_value; } 1.2¡¢fork¼°execº¯Êý µ±³ÌÐòµ÷ÓÃforkµÄʱºò£¬ÔòÒ»¸öÍêÈ«¸´ÖƵÄ×Ó³ÌÐò±»´´½¨¡£ ¸¸½ø³Ì½«´Ófork±»µ÷Óõĵط½¼ÌÐøÖ´ÐÐÏÂÈ¥¡£ ×Ó½ø³ÌÒ²ÊÇ´ÓÏàͬµÄµØ·½ÔËÐÐÏÂÈ¥¡£ ¸¸½ø³ÌÖÐforkº¯ÊýµÄ·µ»ØÖµÊÇ×Ó½ø³ÌµÄ½ø³ÌºÅ¡£ ×Ó½ø³ÌÖÐforkº¯ÊýµÄ·µ»ØÖµÊÇÁã¡£ #include #include #include int main () { pid_t child_pid; printf (¡°the main program process ID is %d\n¡±, (int) getpid ()); child_pid = fork (); if (child_pid != 0) { printf (¡°this is the parent process, with id %d\n¡±, (int) getpid ());
Ïà¹ØÎĵµ£º
Oracle9i Database Release 2 Enterprise/Standard/Personal Edition for Windows NT/2000/XP
http://download.oracle.com/otn/nt/oracle9i/9201/92010NT_Disk1.zip
http://download.oracle.com/otn/nt/oracle9i/9201/92010NT_Disk2.zip
http://download.oracle.com/otn/nt/oracle9i/9201/92010NT_Disk3.zip
Oracle9i ......
×î½ü¸Ð½Ó´¥perl£¬¸Ð¾õºÜ²»´í£¬´¦ÀíÎı¾·Ç³£·½±ã¡£Ç°½×¶ÎÓÃcȥͳ¼ÆһЩÎı¾£¬ÀÛµÄÒªËÀ£¬¶øÇÒ³ÌÐòÖл¹¾³£³öbug£»¶øÓÃperlÔò²»Í¬£¬Ëü±ÜÃâµÄ¸´ÔÓµÄÊý¾Ý½á¹¹£¬ÕâÑù³ö´íµÄ¸ÅÂʾͺÜСÁË£¬¶øÇÒ±àд´úÂë¶ÌС¾«º·¡£Ç°Á½Ì콫perlÄõ½linuxÉÏÔËÐУ¬ËäÈ»Ìí¼ÓÁË#!/usr/local/bin/perl£¬µ«»¹ÊÇÌáʾÕÒ²»µ½½âÊÍÆ÷£ºbad interpreter¡£ÓôÃÆѽ¡ ......
ÍøÂçÅäÖÃ:
¡¡¡¡VMware°²×°ºó»áÓм¸¸öĬÈÏÍø¿¨£¬·Ö±ðÊÇVmnet0£¬Vmnet1ºÍVmnet8£¬³£ÓÃHOST-ONLY£¬BridgeºÍNATÁªÍø·½Ê½¡£±¾ÎĽéÉÜNAT·½Ê½¡£
VmwareÉèÖãº
ÔÚVmwareÉèÖúÃUbuntuµÄÍøÂçÁ¬½Ó·½Ê½£¬Ñ¡ÔñNAT
IPµØÖ·¿ÉÒÔͨ¹ývmware>edit>virtual networking settings ²é¿´£¬ÈçÏÂͼ£º
NATÉè ......
ÆäʵÕâ²ÅÓ¦¸ÃÊÇÕâһϵÁÐÎÄÕµĵÚÒ»½Ú£¬ÒòΪÕâƪÎÄÕ½²µÄÊÇÅ̹ſªÌìµØµÄÊ¡£»°ËµMr.
ProcessÊÇÒ»¸öÏÖ´úÈË£¬µ«ÊÇ£¬Ö»ÒªÊÇÈË£¬×ܸÃÓиö×æÏÈ¡£ÈËÃÇ×ÜÏëÖªµÀ×Ô¼º´ÓÄÄÀ´£¬È»ºó²Å¿ÉÒÔ¹ÀÃþËãÒ»ÏÂ×Ô¼º½«È¥ÏòºÎ·½¡£ËùÒÔÔÛÒ²ÒªÁ˽âÒ»ÏÂ
LinuxµÄÊÀ½çÀïÈËÀàµÄÆðÔ´¡£
ͼ1£º´ÓÉϵ絽BIOS
°´ÏµçÔ´¿ª¹ØµÄÄǸöÕæʵµÄÈ˾ÍÊÇLinuxÊÀ½çÀïµÄ ......
initÊÇLinuxϵͳÀïµÄ¸ù½ø³Ì£¬ÊÇϵͳËùÓнø³ÌµÄ×æÏÈ¡£ËüµÄÖ÷Òª×÷ÓÃÊǸù¾Ý¼Ç¼ÔÚ/etc/inittabÀïµÄÒ»¸ö½Å±¾£¨script£©³ÌÐò²úÉú½ø³Ì¡£Õâ¸öÎļþͨ³£ÓÃÓÚ¿ØÖÆÓû§µÄµÇ¼ģʽ¡£LinuxϵͳµÄÓÐЧµÇ¼ģʽÓÐ0~9¹²Ê®ÖÖ£¬²»¹ýÑØÓÃUNIXϵͳµÄÖÁ¶à6ÖÖµÄÏÞÖÆ£¬Ò»°ãÖ»ÓÐ1µ½6ÓÐЧ¡£
¡¡¡¡initÒ»°ãÔÚϵͳÆô¶¯Ê±×Ô¶¯ÔËÐУ¬Ò²¿ÉÒÔÓÉrootÓû§µ÷ ......