linux Ö´Ðкǫ́ÃüÁî
nohupÃüÁîÓ÷¨¼ò½é
nohup
Èç¹ûÄãÕýÔÚÔËÐÐÒ»¸ö½ø³Ì£¬¶øÇÒÄã¾õµÃÔÚÍ˳öÕÊ»§Ê±¸Ã½ø³Ì»¹²»»á½áÊø£¬ÄÇô¿ÉÒÔʹÓÃn o h u pÃüÁî¡£¸ÃÃüÁî¿ÉÒÔÔÚÄãÍ˳öÕÊ»§Ö®ºó¼ÌÐøÔËÐÐÏàÓ¦µÄ½ø³Ì¡£n o h u p¾ÍÊDz»¹ÒÆðµÄÒâ˼( no hang up)¡£
¸ÃÃüÁîµÄÒ»°ãÐÎʽΪ£º
´úÂë:
nohup command &
ʹÓÃnohupÃüÁîÌá½»×÷Òµ
Èç¹ûʹÓÃn o h u pÃüÁîÌá½»×÷Òµ£¬ÄÇôÔÚȱʡÇé¿öϸÃ×÷ÒµµÄËùÓÐÊä³ö¶¼±»Öض¨Ïòµ½Ò»¸öÃûΪn o h u p . o u tµÄÎļþÖУ¬³ý·ÇÁíÍâÖ¸¶¨ÁËÊä³öÎļþ£º
´úÂë:
nohup command > myout.file 2>&1
ÔÚÉÏÃæµÄÀý×ÓÖУ¬Êä³ö±»Öض¨Ïòµ½m y o u t . f i l eÎļþÖС£
ÈÃÎÒÃÇÀ´¿´Ò»¸öÀý×Ó£¬ÑéÖ¤Ò»ÏÂÔÚÍ˳öÕÊ»§ºóÏàÓ¦µÄ×÷ÒµÊÇ·ñÄܹ»¼ÌÐøÔËÐС£ÎÒÃÇÏÈÌá½»Ò»¸öÃûΪp s 1µÄÈÕÖ¾Çå³ý½ø³Ì£º
´úÂë:
$nobup ps1 &
ÏÖÔÚÍ˳ö¸Ãs h e l l£¬ÔÙÖØеǼ£¬È»ºóÖ´ÐÐÏÂÃæµÄÃüÁ
´úÂë:
$ps x |grep ps1
ÎÒÃÇ¿´µ½£¬¸Ã½Å±¾»¹ÔÚÔËÐС£Èç¹ûϵͳ²»Ö§³Öps xÃüÁʹÓÃps -ef|grep ps1ÃüÁî¡£
5.Ò»´ÎÌá½»¼¸¸ö×÷Òµ
Èç¹ûÏ£ÍûÒ»´ÎÌá½»¼¸¸öÃüÁ×îºÃÄܹ»°ÑËüÃÇдÈëµ½Ò»¸ös h e l l½Å±¾ÎļþÖУ¬²¢ÓÃn o h u pÃüÁîÀ´Ö´ÐÐËü¡£
ÀýÈ磬ÏÂÃæµÄËùÓÐÃüÁÓùܵÀ·ûºÅÁ¬½ÓÔÚÒ»Æð£»ÎÒÃÇ¿ÉÒÔ°ÑÕâЩÃüÁî´æÈëÒ»¸öÎļþ£¬²¢Ê¹¸ÃÎļþ¿ÉÖ´ÐС£
´úÂë:
cat /home/accounts/qrt_0499 | /apps/bin/trials.awk | sort | lp
$cat > quarterend
cat /home/accounts/qtr_0499 | /apps/bin/trials.awk | sort | lp
<ctrl-D>
ÏÖÔÚÈÃËü¿ÉÖ´ÐУº
´úÂë:
$ chmod 744 quarterend
ÎÒÃÇ»¹½«¸Ã½Å±¾µÄËùÓÐÊä³ö¶¼Öض¨Ïòµ½Ò»¸öÃûΪq t r. o u tµÄÎļþÖС£
´úÂë:
nobup ./quarterend > qtr.out 2>
ºǫ́ÔËÐÐ×÷ÒµµÄ:
ÓÐʱÎÒÃDZØÐëÒª¶Ô´óÎļþ½øÐдóÁ¿¸ü¸Ä£¬»òÖ´ÐÐһЩ¸´ÔӵIJéÕÒ£¬ÕâЩ¹¤×÷×îºÃÄܹ»ÔÚϵͳ¸ººÉ½ÏµÍʱִÐС£
´´½¨Ò»¸ö¶¨Ê±ÇåÀíÈÕÖ¾Îļþ»òÍê³ÉÆäËûÌØÊ⹤×÷µÄ½Å±¾£¬ÕâÑùÖ»ÒªÌá½»Ò»´Î£¬¾Í¿ÉÒÔÿÌìÍíÉÏÔËÐУ¬¶øÇÒÎÞÐèÄã¸ÉÔ¤£¬Ö»Òª¿´¿´ÏàÓ¦µÄ½Å±¾ÈÕÖ¾¾Í¿ÉÒÔÁË¡£c r o nºÍÆäËû¹¤¾ß¿ÉÒÔʹϵͳ¹ÜÀíÈÎÎñ±äµÃ¸üÇáËÉ¡£
Ïà¹ØÎĵµ£º
±¾½ÚºÍ´ó¼ÒÒ»ÆðѧϰһÏÂÔÚlinuxÏÂʹÓÃapache+svn+sslÅäÖð²È«°æ±¾¿ØÖÆƽ̨ÎÊÌ⣬¿´Íê±¾ÎÄÄã¿Ï¶¨Óв»ÉÙÊÕ»ñ£¬Ï£Íû±¾ÎÄÄ̻ܽáÄã¸ü¶à¶«Î÷¡£Ê×ÏȽéÉÜÒ»ÏÂlinuxÏÂapache+svn+sslÅäÖõĻ·¾³¡£
»·¾³£º
centos5.4_x64
apache2.2.14
subversion-1.4.2(µ£ÐÄ°ü¹ØÁªÐÔÎÊÌ⣬¾ÍûÓп¼ÂÇ×îа汾£©
°²×°¹ý³Ì£º
1£¬apache°²×°
#./co ......
ÔÚLinuxϱàдDaemon
ÔÚLinux£¨ÒÔRedhat Linux Enterprise Edition 5.3ΪÀý£©Ï£¬ÓÐʱÐèÒª±àдService¡£ServiceÒ²ÊdzÌÐò£¬Ò»°ãËæϵͳÆô¶¯Óû§²»¸ÉÔ¤¾Í²»Í˳öµÄ³ÌÐò£¬¿ÉÒÔ³ÆΪService¡£LinuxϵÄServiceÒ»°ã³ÆΪDaemon¡£
ÒÔÉÏÊǹãÒåµÄServiceµÄ¶¨Òå¡£LinuxϵķþÎñÒ»°ã·ÅÔÚ/etc/init.dÎļþ¼ÐÏ¡£ä¯ÀÀÒ»ÏÂÕ ......
1,˵Ã÷:
ulimitÓÃÓÚshellÆô¶¯½ø³ÌËùÕ¼ÓõÄ×ÊÔ´.
2,Àà±ð:
shellÄÚ½¨ÃüÁî
3,Óï·¨¸ñʽ:
ulimit [-acdfHlmnpsStvw] [size]
4,²ÎÊý½éÉÜ:
-H ÉèÖÃÓ²¼þ×ÊÔ´ÏÞÖÆ.
-S ÉèÖÃÈí¼þ×ÊÔ´ÏÞÖÆ.
-a ÏÔʾµ±Ç°ËùÓеÄ×ÊÔ´ÏÞÖÆ.
-c size:ÉèÖÃcoreÎļþµÄ×î´óÖµ.µ¥Î»:blocks
-d size:ÉèÖÃÊý¾Ý¶ÎµÄ×î´óÖµ.µ¥Î»:kbytes
-f size:ÉèÖô´½¨ ......
Ëæ×ÅLinuxÓ¦ÓõÄÀ©Õ¹£¬Ðí¶àÅóÓÑ¿ªÊ¼½Ó´¥Linux£¬¸ù¾ÝѧϰWindwosµÄ¾ÑéÍùÍùÓÐһЩãȻµÄ¸Ð¾õ£º²»Öª´ÓºÎ´¦¿ªÊ¼Ñ§Æð¡£×÷Ϊһ¸ö
Linuxϵͳ¹ÜÀíÔ±£¬ÎÒ¿´ÁËÐí¶àÓйØLinuxµÄÎĵµºÍÊé¼®£¬²¢ÎªÑ§Ï°Linux¸¶³öÁËÐí¶à¼è¿àµÄŬÁ¦¡£µ±ÕæÕý»ñµÃÁËÒ»·ÝÕýʽµÄLinuxϵͳ¹ÜÀí¹¤×÷
ºó£¬ÎÒ¸ü¼ÓÉî
¿ÌµØÀí½âÁËLinuxµÄÁé»ê£º·þÎñÓÚ¶àÓû§¡£Linux ......