Linux ɱËÀ½ø³Ì·½·¨(kill,killall)
ɱËÀ½ø³Ì×ȫµÄ·½·¨Êǵ¥´¿Ê¹ÓÃkillÃüÁ²»¼ÓÐÞÊηû£¬²»´ø±êÖ¾¡£Ê×ÏÈʹÓÃps -efÃüÁîÈ·¶¨ÒªÉ±ËÀ½ø³ÌµÄPID£¬È»ºóÊäÈëÒÔÏÂÃüÁ
# kill pid
×¢ÊÍ£º±ê×¼µÄkillÃüÁîͨ³£¶¼ÄܴﵽĿµÄ£¬ÏÔʾZ״̬µÄ½ø³ÌÒѾËÀÍö¡£ÖÕÖ¹ÓÐÎÊÌâµÄ½ø³Ì£¬²¢°Ñ½ø³ÌµÄ×ÊÔ´ÊͷŸøϵͳ¡£È»¶ø£¬Èç¹û½ø³ÌÆô¶¯ÁË×Ó½ø³Ì£¬Ö»É±ËÀ¸¸½ø³Ì£¬×Ó½ø³ÌÈÔÔÚÔËÐУ¬Òò´ËÈÔÏûºÄ×ÊÔ´¡£ÎªÁË·ÀÖ¹ÕâЩËùνµÄ“½©Ê¬½ø³Ì”£¬Ó¦È·±£ÔÚɱËÀ¸¸½ø³Ì֮ǰ£¬ÏÈɱËÀÆäËùÓеÄ×Ó½ø³Ì¡£
killallÃüÁkillallÃüÁîɱËÀͬһ½ø³Ì×éÄÚµÄËùÓнø³Ì¡£ÆäÔÊÐíÖ¸¶¨ÒªÖÕÖ¹µÄ½ø³ÌµÄÃû³Æ£¬¶ø·ÇPID¡£È磺# killall httpd¡£
kill -9 PIDÃüÁ¾øɱ£¬Õâ¸öÇ¿´óºÍΣÏÕµÄÃüÁîÆÈʹ½ø³ÌÔÚÔËÐÐʱͻȻÖÕÖ¹£¬½ø³ÌÔÚ½áÊøºó²»ÄÜ×ÔÎÒÇåÀí¡£Î£º¦Êǵ¼ÖÂϵͳ×ÊÔ´ÎÞ·¨Õý³£ÊÍ·Å£¬Ò»°ã²»ÍƼöʹÓ㬳ý·ÇÆäËû°ì·¨¶¼ÎÞЧ¡£
²Î¿¼ÔÎÄ£ºhttp://www.tot.name/show/5/94/20070922131806.htm
Ïà¹ØÎĵµ£º
mkdir -p /usr/local/svn/to/bakcup
/usr/local/svn/bin/svnadmin hotcopy /usr/local/svn/repos/test /usr/local/svn/to/bakcup --clean-logs
ÏêϸÇë²Î¿¼svn ÊÖ²á:
http://wenku.baidu.com/view/7c4617791711cc7931b71655.html ......
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
USER£º½ø³ÌËùÓÐÕß¡£
¡¡¡¡PID£º½ø³ÌºÅ¡£
¡¡¡¡%CPU£ºÕ¼ÓÃµÄ CPU ʹÓÃÂÊ¡£
¡¡¡¡%MEM£ºÕ¼ÓõÄÄÚ´æʹÓÃÂÊ¡£
¡¡¡¡VSZ£ºÕ¼ÓõÄÐéÄâÄÚ´æ´óС¡£
¡¡¡¡RSS£ºÕ¼ÓõÄÄÚ´æ´óС¡£
¡¡¡¡TTY£ºÖն˵ĴÎÉ豸ºÅÂë¡£
¡¡¡¡STAT£º¸Ã½ø³ÌµÄ״̬¡£
¡¡¡¡ ......
ΪÁË·½Ã棬ÎÒдÁ˸ö½Å±¾×Ô¶¯sshµÇ¼Զ¶Ë»úÆ÷£¬ÈçÏ£¬Õâ¸ö½Å±¾ÐèÒª°²×°expect°ü
================================
#!/usr/bin/expect
set timeout 30
spawn ssh -l root 192.168.1.117
expect "password:"
send "nopasswd\r"
interact
================================
set timeout 30
ÉèÖÃ ......
Yum ÊÇyellowdog updater modifiedµÄËõд¡£yum µÄÀíÄîÊÇʹÓÃÒ»¸öÖÐÐIJֿâ(repository)¹ÜÀíÒ»²¿·ÖÉõÖÁÒ»¸ö distribution µÄÓ¦ÓóÌÐòÏ໥¹Øϵ£¬¸ù¾Ý¼ÆËã³öÀ´µÄÈí¼þÒÀÀµ¹Øϵ½øÐÐÏà¹ØµÄÉý¼¶¡¢°²×°¡¢É¾³ýµÈµÈ²Ù×÷£¬¼õÉÙÁË Linux Óû§Ò»Ö±Í·Í´µÄ dependencies µÄÎÊÌ ......