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

¹ØÓÚlinux½ø³Ì¹ÜÀí

 
¸´Ï°Ò»Ï£¬ÃâµÃÍü¼Ç¡£
ÏÔʾ½ø³ÌÊôÐÔ- ps ÃüÁî
ps ÃüÁ¸ÃÃüÁîÊÇ×î»ù±¾Í¬Ê±Ò²ÊǷdz£Ç¿´óµÄ½ø³Ì²é¿´ÃüÁÓÃÓÚ±¨¸æ½ø³Ì±êʶ¡¢Óû§¡¢CPU ʱ¼äÏûºÄÒÔ¼°ÆäËûÊôÐÔ¡£ÀûÓÃËü¿ÉÒÔÈ·¶¨ÓÐÄÄЩ½ø³ÌÕýÔÚÔËÐм°ÔËÐеÄ״̬¡¢½ø³ÌÊÇ·ñ½áÊø¡¢½ø³ÌÓÐûÓн©ËÀ¡¢ÄÄЩ½ø³ÌÕ¼ÓÃÁ˹ý¶àµÄ×ÊÔ´µÈ¡£ps ÃüÁî¿ÉÒÔ¼à¿Øºǫ́½ø³ÌµÄ¹¤×÷Çé¿ö£¬ÒòΪºǫ́½ø³ÌÊDz»ºÍÆÁÄ»¼üÅÌÕâЩ±ê×¼ÊäÈë / Êä³öÉ豸½øÐÐͨÐŵģ¬Èç¹ûÐèÒª¼ì²âÆäÇé¿ö£¬¿ÉÒÔʹÓà ps ÃüÁî¡£
µ¥¶ÀʹÓà ps ÃüÁîËù¿´µ½µÄ½ø³ÌÁÐ±í£¬¶¼ÊÇÔÚǰִ̨ÐеĽø³Ì£¬µ«²¢·ÇËùÓнø³Ì¶¼ÔÚǰִ̨ÐУ¬Ò²Óв»ÉÙ½ø³ÌÒþ²ØÔÚºǫִ́ÐС£Ê¹ÓÃÃüÁî ps -e ¿ÉÒÔÏÔʾËùÓнø³Ì¡£
½ø³ÌÐÔÄܼì²âÃüÁî-top ÃüÁî
top ÃüÁLinux ʹÓà top ÃüÁîÀ´ÏÔʾ CPU Õ¼ÓÃÂÊΪǰ¼¸Î»µÄ½ø³Ì¡£¸ÃÃüÁî¿ÉÒÔ°´ CPU ʹÓÃÂÊ¡¢ÄÚ´æʹÓÃÂÊ¡¢Ö´ÐÐʱ¼ä¶ÔÈÎÎñ½øÐÐÅÅÐò£¬¶øÇÒ¸ÃÃüÁîµÄºÜ¶àÌØÐÔ¶¼¿ÉÒÔͨ¹ý½»»¥Ê½ÃüÁî»òÕßÔÚ¸öÈ˶¨ÖÆÎļþÖнøÐÐÉ趨¡£top Ö÷Òª×ֶεĺ¬ÒåÈçÏ£º
ÁÐÃû º¬Òå
PID
½ø³Ì ID
USER
½ø³ÌËùÓÐÕßµÄÓû§Ãû
PR
ÈÎÎñÓÅÏȼ¶
NI
nice Öµ¡£ÊýֵԽС±íʾÓÅÏȼ¶Ô½¸ß£¬ÊýÖµÔ½´ó±íʾÓÅÏȼ¶Ô½µÍ
VIRT
½ø³ÌʹÓõÄÐéÄâÄÚ´æ×ÜÁ¿£¬µ¥Î»£ºkb¡£VIRT=SWAP+RES
RES
½ø³ÌʹÓõġ¢Î´±»»»³öµÄÎïÀíÄÚ´æ´óС£¬µ¥Î»£ºkb¡£RES=CODE+DATA
SHR
¹²ÏíÄÚ´æ´óС£¬µ¥Î»£ºkb
S
½ø³Ì״̬¡£
D= ²»¿ÉÖжϵÄ˯Ãß״̬ 
R= ÔËÐР
S= ˯Ãß 
T= ¸ú×Ù / Í£Ö¹ 
Z= ½©Ê¬½ø³Ì
%CPU
Éϴθüе½ÏÖÔÚµÄ CPU ʱ¼äÕ¼ÓðٷֱÈ
TIME+
½ø³ÌʹÓÃµÄ CPU ʱ¼ä×ܼƣ¬¾«È·µ½ 1/100 Ãë
COMMAND
ÃüÁîÃû / ÃüÁîÐÐ
¿ØÖƽø³ÌÕùÓà CPU µÄÓÅÏȼ¶¼¶±ðµÄÃüÁî- nice ÃüÁî, renice ÃüÁî
nice ÃüÁnice ÃüÁîÔÊÐíÄúÒÔ±ÈÃüÁîµÄÕý³£ÓÅÏȼ¶¸üµÍµÄÓÅÏȼ¶ÔËÐÐÃüÁî¡£
Óï·¨£ºnice [  - Increment|  -n Increment ] Command [ Argument ... ]
Èç¹ûÄúûÓÐÖ¸¶¨ Increment Öµ£¬nice ÃüÁîȱʡΪµÝÔöÖµ 10¡£Äú±ØÐëÓÐ root Óû§È¨ÏÞÒÔÔÚ¸ü¸ßµÄÓÅÏȼ¶ÔËÐÐÃüÁî¡£½ø³ÌµÄÓÅÏȼ¶Í¨³£±»³Æ×÷ËüµÄ nice Öµ¡£Linux ²Ù×÷ϵͳµÄ nice Öµ·¶Î§ÊÇ -20 µ½ 19£¬19 ÊÇ×îµÍÓÅÏȼ¶¡£AIX ²Ù×÷ϵͳ nice ÖµµÄ·¶Î§ÊÇ 0 µ½ 39£¬39 ÊÇ×îµÍÓÅÏȼ¶¡£Èç¹ûÄúûÓÐÊʵ±µÄȨÏÞ¾ÍÊÔͼÔö¼ÓÃüÁîµÄÓÅÏȼ¶£¬nice ÃüÁî²»»á·µ»Ø´íÎóÏûÏ¢¡£Ïà·´£¬ÃüÁîµÄÓÅÏȼ¶²»»á¸ü¸Ä£¬²¢ÇÒϵͳÒÔËüͨ³£µÄÓÅÏȼ¶Æô¶¯ÃüÁî¡£
renice ÃüÁrenice ÃüÁî¸Ä±äϵͳÖÐÒѾ­ÔÚÔËÐеÄÒ»¸ö»ò¶à¸ö½ø³ÌµÄ nice Öµ£¬Òò´Ë¸Ä±äÁËÓ


Ïà¹ØÎĵµ£º

Linux ½Å±¾±àд»ù´¡


1. Linux ½Å±¾±àд»ù´¡
1.1 Óï·¨»ù±¾½éÉÜ
1.1.1 ¿ªÍ·
³ÌÐò±ØÐëÒÔÏÂÃæµÄÐпªÊ¼£¨±ØÐë·½ÔÚÎļþµÄµÚÒ»ÐУ©£º
#!/bin/sh
¡¡¡¡·ûºÅ#!ÓÃÀ´¸æËßϵͳËüºóÃæµÄ²ÎÊýÊÇÓÃÀ´Ö´ÐиÃÎļþµÄ³ÌÐò¡£ÔÚÕâ¸öÀý×ÓÖÐÎÒÃÇʹÓÃ/bin/shÀ´Ö´ÐгÌÐò¡£
¡¡¡¡µ±±à¼­ºÃ½Å±¾Ê±£¬Èç¹ûÒªÖ´Ðиýű¾£¬»¹±ØÐëʹÆä¿ÉÖ´ÐС£
¡¡¡¡ÒªÊ¹½Å±¾¿ÉÖ´ÐУº
±àÒë ......

ÔÚlinuxÃüÁîÐÐÏÂÇл»µ½vesaģʽ, ʹÓÃVBE½øÐлæͼ


ÕâÊÇÒ»¸öÔÚlinuxÃüÁîÐÐÏÂʹÓÃVBE½øÐлæͼµÄ²âÊÔ³ÌÐò
ÓÃlibx86ʵÏÖÔÚreal modeϵÄvesaģʽÉ趨ºÍͼÐÎÏÔʾ¹¦ÄÜ
ʵÏÖÔÚlinuxµÄ±£»¤Ä£Ê½, Îı¾ÃüÁîÐÐÏÂÇл»µ½vesaģʽ£¬ÔÙ»­¸öÊ®×ÖµÄ×ø±ê£¬ÔÙ¼¸¸öԲȦ^_^
ÐÞ¸Ä×Ôvbespy
°²×°ÔËÐУº
    Ö±½ÓÔËÁîÐÐÔËÐÐ "make", ±àÒë³É¹¦ºó
    ......

how to install apache, PHP and MySQL on Linux 3

how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating ......

ʹÓÃscpÔÚlinuxÖ÷»úÖ®¼äÎÞÃÜÂ븴ÖÆÎļþ/Ŀ¼


µ±Á½Ì¨LINUXÖ÷»úÖ®¼äÒª»¥´«Îļþʱ¿ÉʹÓÃSCPÃüÁîÀ´ÊµÏÖ£¬½¨Á¢ÐÅÈιØϵ֮ºó¿É²»ÊäÈëÃÜÂë¡£
°ÑÄãµÄ±¾µØÖ÷»úÓû§µÄssh¹«³×Îļþ¸´ÖƵ½Ô¶³ÌÖ÷»úÓû§µÄ~/.ssh/authorized_keysÎļþÖÐ
¼ÙÉè±¾µØÖ÷»úlinux100,Ô¶³ÌÖ÷»úlinux200
Ò»£¬ÔÚlinux100Ö÷»úÀïµÄÓû§
ÔËÐÐ
#ssh-keygen -t rsa
½á¹ûÈçÏÂ
QUOTE:
Generating public/priv ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ