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

LinuxÏÂKill¶à¸ö½ø³Ì

¹¤×÷Öо­³£ÐèÒªKill¶à¸ö½ø³Ì£¬Èç¹ûÕâЩ½ø³ÌÓй²Í¬µÄÌص㣬¾Í¿ÉÒÔÓÃÒ»ÌõÃüÁîKillµôËüÃÇ¡£
±ÈÈçÇå³ýOracleÊý¾Ý¿âµÄËùÓÐÔ¶³ÌÁ¬½Ó½ø³Ì£º

ps -efww|grep LOCAL=NO|grep -v grep|cut -c 9-15|xargs kill -9
¡¡¡¡¹ÜµÀ·û“|”ÓÃÀ´¸ô¿ªÁ½¸öÃüÁ¹ÜµÀ·û×ó±ßÃüÁîµÄÊä³ö»á×÷Ϊ¹ÜµÀ·ûÓÒ±ßÃüÁîµÄÊäÈë¡£ÏÂÃæ˵˵ÓùܵÀ·ûÁª½ÓÆðÀ´µÄ¼¸¸öÃüÁ
“ps¡¡£­¡¡efww”ÊÇRed Hat 7.0Àï²é¿´ËùÓнø³ÌµÄÃüÁî¡£Õâʱ¼ìË÷³öµÄ½ø³Ì½«×÷ΪÏÂÒ»ÌõÃüÁî“grep LOCAL=NO”µÄÊäÈë¡£
¡¡¡¡“grep LOCAL=NO”µÄÊä³ö½á¹ûÊÇ£¬ËùÓк¬Óйؼü×Ö“LOCAL=NO”µÄ½ø³Ì£¬ÕâÊÇOracleÊý¾Ý¿âÖÐÔ¶³ÌÁ¬½Ó½ø³ÌµÄ¹²Í¬Ìص㡣
¡¡¡¡“grep -v grep”ÊÇÔÚÁгöµÄ½ø³ÌÖÐÈ¥³ýº¬Óйؼü×Ö“grep”µÄ½ø³Ì¡£
¡¡¡¡“cut -c 9-15”ÊǽØÈ¡ÊäÈëÐеĵÚ9¸ö×Ö·ûµ½µÚ15¸ö×Ö·û£¬¶øÕâÕýºÃÊǽø³ÌºÅPID¡£
¡¡
¡¡“xargs kill -9”ÖеÄxargsÃüÁîÊÇÓÃÀ´°ÑÇ°ÃæÃüÁîµÄÊä³ö½á¹û£¨PID£©×÷Ϊ“kill
-9”ÃüÁîµÄ²ÎÊý£¬²¢Ö´ÐиÃÃüÁî¡£“kill
-9”»áÇ¿ÐÐɱµôÖ¸¶¨½ø³Ì£¬ÕâÑù¾Í³É¹¦Çå³ýÁËoracleµÄËùÓÐÔ¶³ÌÁ¬½Ó½ø³Ì¡£ÆäËüÀàËƵÄÈÎÎñ£¬Ö»ÐèÒªÐ޸ēgrep
LOCAL=NO”ÖеĹؼü×Ö²¿·Ö¾Í¿ÉÒÔÁË¡£


Ïà¹ØÎĵµ£º

Linux»·¾³½ø³Ì¼äͨÐÅ£¨Î壩——¹²ÏíÄÚ´æ

http://www.ibm.com/developerworks/cn/linux/l-ipc/part5/index1.html
¹²ÏíÄÚ´æ¿ÉÒÔ˵ÊÇ×îÓÐÓõĽø³Ì¼äͨÐÅ·½Ê½£¬Ò²ÊÇ×î¿ìµÄIPCÐÎʽ¡£Á½¸ö²»Í¬½ø³ÌA¡¢B¹²ÏíÄÚ´æµÄÒâ˼ÊÇ£¬Í¬Ò»¿éÎïÀíÄÚ´æ±»Ó³Éäµ½
½ø³ÌA¡¢B¸÷×ԵĽø³ÌµØÖ·¿Õ¼ä¡£½ø³ÌA¿ÉÒÔ¼´Ê±¿´µ½½ø³ÌB¶Ô¹²ÏíÄÚ´æÖÐÊý¾ÝµÄ¸üУ¬·´Ö®ÒàÈ»¡£ÓÉÓÚ¶à¸ö½ø³Ì¹²Ïíͬһ¿éÄÚ´æÇøÓò£ ......

linuxϵͳÏÂÓÃshell½Å±¾´´½¨FTPÕʺÅ

ÒÔÏÂΪSHELL½Å±¾´´½¨Ò»¸ö±È½ÏÍêÕûµÄFTPÕʺÅ,°üÀ¨:
   1) ÐÂÔöFTPÕÊ»§ºÍĿ¼
   2) ÐÞ¸ÄFTPÕÊ»§ÃÜÂë
   3) ÔÚFTPÕÊ»§Ä¿Â¼ÏÂ,н¨Èý¸ö×ÓĿ¼,´æ·Å²»Í¬Êý¾Ý
   4) Ŀ¼ȨÏÞÖÃΪ¿É¶Áд
ʹÓÃ˵Ã÷:
   1) ´´½¨ÐÂshÎļþ(Èç:addFTPAcc.sh), ½«Ô´½Å±¾È«²¿¿½±´ÆäÖÐ
  ......

linuxÏÂʹÓÃthunderbirdÊÕ·¢hotmailºÍgmail

      windowsÏÂʹÓÃfoxmailºÜÈÝÒ×ÉèÖÃhotmailºÍgmail£¬×ªµ½linuxºó£¬·¢ÏÖevolution²»Ì«ºÃʹ£¬ÓʼþÐÅÏ¢µÄ±àÂëû·¨ÉèÖã¬gbk±àÂëµÄÓʼþÖ÷ÌâÏÔʾÂÒÂ룬ֻºÃ»»³Éthunderbird¡£
      thunderbird±¾Éí²»Ö§³ÖhotmailÕâÀàwebmailµÄÊÕ·¢£¬ÐèÒªÏÂÔزå¼þwebmailºÍhotmail£¬ÐèÒª½ÓÊÕyahooµÄ ......

LinuxÏ»ñµÃϵͳʱ¼äµÄCÓïÑÔµÄʵÏÖ·½·¨

 LinuxÏ»ñµÃϵͳʱ¼äµÄCÓïÑÔµÄʵÏÖ·½·¨
#include<time.h>  //CÓïÑÔµÄÍ·Îļþ
#include<stdio.h>  //CÓïÑÔµÄI/O
void main()
{
time_t now;    //ʵÀý»¯time_t½á¹¹
struct tm  *timenow;    //ʵÀý»¯tm½á¹¹Ö¸Õë
time(&now);
//timeº¯Êý¶ÁÈ¡ÏÖÔÚµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ