Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LINUXºǫ́½ø³Ì¹ÜÀí

fg¡¢bg¡¢jobs¡¢&¡¢ctrl + z¶¼ÊǸúϵͳÈÎÎñÓйصģ¬ËäÈ»ÏÖÔÚ»ù±¾Éϲ»ÔõôÐèÒªÓõ½ÕâЩÃüÁµ«Ñ§»áÁËÒ²ÊǺÜʵÓõÄ
Ò»¡£& ×î¾­³£±»Óõ½
Õâ¸öÓÃÔÚÒ»¸öÃüÁîµÄ×îºó£¬¿ÉÒÔ°ÑÕâ¸öÃüÁî·Åµ½ºǫִ́ÐÐ
¶þ¡£ctrl + z
¿ÉÒÔ½«Ò»¸öÕýÔÚǰִ̨ÐеÄÃüÁî·Åµ½ºǫ́£¬²¢ÇÒÔÝÍ£
Èý¡£jobs
²é¿´µ±Ç°ÓжàÉÙÔÚºǫ́ÔËÐеÄÃüÁî
ËÄ¡£fg
½«ºǫ́ÖеÄÃüÁîµ÷ÖÁǰ̨¼ÌÐøÔËÐÐ
Èç¹ûºǫ́ÖÐÓжà¸öÃüÁ¿ÉÒÔÓà fg %jobnumber½«Ñ¡ÖеÄÃüÁîµ÷³ö£¬%jobnumberÊÇͨ¹ýjobsÃüÁî²éµ½µÄºǫ́ÕýÔÚÖ´ÐеÄÃüÁîµÄÐòºÅ(²»ÊÇpid)
Îå¡£bg
½«Ò»¸öÔÚºǫ́ÔÝÍ£µÄÃüÁ±ä³É¼ÌÐøÖ´ÐÐ
Èç¹ûºǫ́ÖÐÓжà¸öÃüÁ¿ÉÒÔÓÃbg %jobnumber½«Ñ¡ÖеÄÃüÁîµ÷³ö£¬%jobnumberÊÇͨ¹ýjobsÃüÁî²éµ½µÄºǫ́ÕýÔÚÖ´ÐеÄÃüÁîµÄÐòºÅ(²»ÊÇpid) LinuxÏÂʹÓÃShellÃüÁî¿ØÖÆÈÎÎñJobsÖ´ÐÐ ÏÂÁÐÃüÁî¿ÉÒÔÓÃÀ´²Ù×ݽø³ÌÈÎÎñ£º
ps ÁгöϵͳÖÐÕýÔÚÔËÐеĽø³Ì£»
kill ·¢ËÍÐźŸøÒ»¸ö»ò¶à¸ö½ø³Ì£¨¾­³£ÓÃÀ´É±ËÀÒ»¸ö½ø³Ì£©£»
jobs Áгöµ±Ç°shell»·¾³ÖÐÒÑÆô¶¯µÄÈÎÎñ״̬£¬Èôδָ¶¨jobsid£¬ÔòÏÔʾËùÓлµÄÈÎÎñ״̬ÐÅÏ¢£»Èç¹û±¨¸æÁËÒ»¸öÈÎÎñµÄÖÕÖ¹(¼´ÈÎÎñµÄ״̬±»±ê¼ÇΪTerminated)£¬shell ´Óµ±Ç°µÄshell»·¾³ÒÑÖªµÄÁбíÖÐɾ³ýÈÎÎñµÄ½ø³Ì±êʶ£»
bg ½«½ø³Ì°áµ½ºǫ́ÔËÐУ¨Background£©£»
fg ½«½ø³Ì°áµ½Ç°Ì¨ÔËÐУ¨Foreground£©£»
½«jobתÒƵ½ºǫ́ÔËÐÐ
Èç¹ûÄã¾­³£ÔÚXͼÐÎϹ¤×÷£¬Äã¿ÉÄÜÓÐÕâÑùµÄ¾­Àú£ºÍ¨¹ýÖÕ¶ËÃüÁîÔËÐÐÒ»¸öGUI³ÌÐò£¬GUI½çÃæ³öÀ´ÁË£¬µ«ÊÇÄãµÄÖն˻¹Í£ÁôÔÚÔ­µØ£¬Äã²»ÄÜÔÚshellÖмÌÐøÖ´ÐÐÆäËûÃüÁîÁË£¬³ý·Ç½«GUI³ÌÐò¹Øµô¡£
ΪÁËʹ³ÌÐòÖ´ÐкóÖն˻¹ÄܼÌÐø½ÓÊÜÃüÁÄã¿ÉÒÔ½«½ø³ÌÒƵ½ºǫ́ÔËÐУ¬Ê¹ÓÃÈçÏÂÃüÁîÔËÐгÌÐò£º #¼ÙÉèÒªÔËÐÐxmms
$xmms &
ÕâÑù´ò¿ªxmmsºó£¬Öն˵ÄÌáʾÓÖ»ØÀ´ÁË¡£ÏÖÔÚxmmsÔÚºǫ́ÔËÐÐ×ÅÄØ£»µ«ÍòÒ»ÄãÔËÐгÌÐòʱÍü¼ÇʹÓá°&¡±ÁË£¬ÓÖ²»ÏëÖØÐÂÖ´ÐУ»Äã¿ÉÒÔÏÈʹÓÃctrl+z¹ÒÆð³ÌÐò£¬È»ºóÇÃÈëbgÃüÁÕâÑù³ÌÐò¾ÍÔÚºǫ́¼ÌÐøÔËÐÐÁË¡£
¸ÅÄµ±Ç°ÈÎÎñ
Èç¹ûºǫ́µÄÈÎÎñºÅÓÐ2¸ö£¬[1],[2]£»Èç¹ûµ±µÚÒ»¸öºǫ́ÈÎÎñ˳ÀûÖ´ÐÐÍê±Ï£¬µÚ¶þ¸öºǫ́ÈÎÎñ»¹ÔÚÖ´ÐÐÖÐʱ£¬µ±Ç°ÈÎÎñ±ã»á×Ô¶¯±ä³Éºǫ́ÈÎÎñºÅÂë¡°[2]¡±µÄºǫ́ÈÎÎñ¡£ËùÒÔ¿ÉÒԵóöÒ»µã£¬¼´µ±Ç°ÈÎÎñÊÇ»á±ä¶¯µÄ¡£µ±Óû§ÊäÈë¡°fg¡±¡¢¡°bg¡±ºÍ¡°stop¡±µÈÃüÁîʱ£¬Èç¹û²»¼ÓÈκÎÒýºÅ£¬ÔòËù±ä¶¯µÄ¾ùÊǵ±Ç°ÈÎÎñ¡£
²ì¿´jobs
ʹÓÃjobs»òpsÃüÁî¿ÉÒԲ쿴ÕýÔÚÖ´ÐеÄjobs¡£


Ïà¹ØÎĵµ£º

Linux µÄ¶àÏ̱߳à³ÌµÄ¸ßЧ¿ª·¢¾­Ñé

2009 Äê 4 ÔÂ 23 ÈÕ
±¾ÎÄÖÐÎÒÃÇÕë¶Ô Linux É϶àÏ̱߳à³ÌµÄÖ÷ÒªÌØÐÔ×ܽá³ö 5 Ìõ¾­Ñ飬ÓÃÒÔ¸ÄÉÆ Linux ¶àÏ̱߳à³ÌµÄÏ°¹ßºÍ±ÜÃâÆäÖеĿª·¢ÏÝÚå¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃÇ´©²åһЩ Windows µÄ±à³ÌÓÃÀýÓÃÒÔ¶Ô±È Linux ÌØÐÔ£¬ÒÔ¼ÓÉî¶ÁÕßÓ¡Ïó¡£
±³¾°
Linux ƽ̨ÉϵĶàÏ̳߳ÌÐò¿ª·¢Ïà¶ÔÓ¦ÆäËûƽ̨£¨±ÈÈç Windows£©µÄ¶àÏß³Ì API ÓÐһЩϸ΢ ......

Tips: linux½ø³ÌºÍÏ̲߳îÒì(0)


1 linux½ø³ÌÓëÏ̵߳ÄÁªÏµºÍÇø±ð£º
    ÔÚlinuxÖУ¬Ḭ̈߳´ÕÕ½ø³ÌµÄ·½Ê½ÊµÏÖ¡£ÆäʵÏÖ»úÖÆÓësolarisºÍwindows²îÒìºÜ´ó¡£
    ÔÚÏÖ´ú²Ù×÷ϵͳÖУ¬½ø³ÌÖ§³Ö¶àỊ̈߳¬½ø³ÌÊÇ×ÊÔ´¹ÜÀíÒÔ¼°·ÖÅäµÄ×îСµ¥Ôª£¬Ïß³ÌÊdzÌÐòÖ´ÐеÄ×îСµ¥Ôª¡£Ò»¸ö½ø³ÌʵÌå·ÖΪ£ºÏ̼߳¯ºÍ×ÊÔ´¼¯(°üÀ¨µØÖ·¿Õ¼ä¡¢´ò¿ªµÄÎļþÒ ......

Linux Óû§£¨user£©ºÍÓû§×飨group£©¹ÜÀí¸ÅÊö


Posted ʮԠ14th, 2005 by beinan
Fedora
 
Redhat
 
»ù´¡ÈëÃÅ
 
Fedora
×÷Õߣº±±ÄÏÄϱ±
À´×Ô£ºLinuxSir.Org
ÕªÒª£º±¾ÎÄÖ÷Òª½²ÊöÔÚLinux ϵͳÖÐÓû§(user)ºÍÓû§×é(group)¹ÜÀíÏàÓ¦µÄ¸ÅÄÓû§(user)ºÍÓû§×é(group)Ïà¹ØÃüÁîµÄÁо٣»ÆäÖÐÒ²¶Ôµ¥Óû§¶àÈÎÎñ£¬¶àÓû§¶àÈÎÎñÒ²×öÒÔ½â˵£¬±¾ÎÄÓ¦¸Ã˵ ......

LinuxÏÂ80¶Ë¿Ú±»Õ¼ÓÃ

½â¾ö·½°¸£ºlinux Ͻ«tomcatµÄserver.xmlµÄ¶Ë¿Ú¸ÄΪ80ºóÒÔtomcatÉí·ÝÎÞ·¨Æô¶¯tomcat¡£
 
ÔÚredhatÉÏÆô¶¯tomcat£¨½«server.xmlÖеĶ˿ڸÄΪ80£©
 
su - tomcat -c "$CATALINA_HOME/bin/startup.sh"
 
ºó³öÏÖ£ºCatalina.start: LifecycleException: null.open: java.net.BindException: Permission deni ......

LinuxµÄÒì³£ºÍÄÚºËÇÀÕ¼

£¨1£©Òì³£µÄ¸ÅÄî
      ÖжÏÐźÅÊÇÒ»¸öͳ³Æ£¬Í³³ÆÄÇЩ¸Ä±äCPUÖ¸ÁîÖ´ÐÐÐòÁеÄʼþ¡£µ«ËüÓÖ·ÖΪÁ½ÖÖ£º
Ò»ÖÖÊÇͬ²½µÄ£¬Ã»ÄÇôͻȻ£¬ÒòΪËüÖ»ÔÚÒ»¸öÖ¸ÁîµÄÖ´ÐÐÖÕÖ¹Ö®ºó²Å·¢Éú£¬ÊéÖÐÒÀ´ÓIntelµÄ¹ßÀý£¬³ÆΪÒì³££¨Exception£©¡£Ò»°ãÊDZà³Ì´íÎó£¨Ò»°ãµÄ´¦ÀíÊÇ·¢Ðźţ©»òÕßÄں˱ØÐë´¦ÀíµÄÒì³£Çé¿ö£¨Äں˻ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ