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

linux yumÃüÁîÏê½â

Ò». yumÊÇʲô
yum = Yellow dog Updater, Modified
Ö÷Òª¹¦ÄÜÊǸü·½±ãµÄÌí¼Ó/ɾ³ý/¸üÐÂRPM°ü.
ËüÄÜ×Ô¶¯½â¾ö°üµÄÒÐÀµÐÔÎÊÌâ.
ËüÄܱãÓÚ¹ÜÀí´óÁ¿ÏµÍ³µÄ¸üÐÂÎÊÌâ
×¢:ΪʲôҪʹÓÃyum¶ø²»ÓÃapt,×î¼òµ¥µÄÔ­Òò,Fedora×Ô´ø

¶þ. yumÌصã
*¿ÉÒÔͬʱÅäÖöà¸ö×ÊÔ´¿â(Repository)
*¼ò½àµÄÅäÖÃÎļþ(/etc/yum.conf)
*×Ô¶¯½â¾öÔö¼Ó»òɾ³ýrpm°üʱÓöµ½µÄÒÐÀµÐÔÎÊÌâ
*ʹÓ÷½±ã
*±£³ÖÓëRPMÊý¾Ý¿âµÄÒ»ÖÂÐÔ

Èý. yum°²×°
Fedora×Ô´ø
#rpm -ivh yum-2.0.4-2.noarch.rpm

ËÄ. yumÅäÖÃ
×¢:Ð޸ĺÍÔö¼ÓÅäÖÃÎļþÖеÄ×ÊÔ´¿â,¼Ó¿ìÏÂÔØËٶȺÍÓµÓиü¶à¿É¸üеÄrpm°ü
½«/etc/yum.confµÄÄÚÈÝÈ«²¿Ì滻Ϊ
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=1

[fedora-us-1]
name=Fedora Core 1 -- Fedora US mirror

baseurl=ftp://mirrors.kernel.org/fedora.us/fedora/fedora/1/i386/yum/os

[fedora-us-1-updates]
name=Fedora Core 1 updates -- Fedora US mirror

baseurl=ftp://mirrors.kernel.org/fedora.us/fedora/fedora/1/i386/yum/updates


[fedora-us-1-stable]
name=Fedora Linux (stable) for Fedora Core 1 -- Fedora US
mirror

baseurl=ftp://mirrors.kernel.org/fedora.us/fedora/fedora/1/i386/yum/stable


[freshrpms]
name=Fedora Linux $releasever - $basearch - freshrpms

baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms



Îå. yumÓ¦ÓÃ

×¢:µ±µÚÒ»´ÎʹÓÃyum»òyum×ÊÔ´¿âÓиüÐÂʱ,yum»á×Ô¶¯ÏÂÔØËùÓÐËùÐèµÄhe


Ïà¹ØÎĵµ£º

linux fg bg ctrl + z jobs & µÈÃüÁî


fg¡¢bg¡¢jobs¡¢&¡¢ctrl + z¶¼ÊǸúϵͳÈÎÎñÓйصģ¬ËäÈ»ÏÖÔÚ»ù±¾Éϲ»ÔõôÐèÒªÓõ½ÕâЩÃüÁµ«Ñ§»áÁËÒ²ÊǺÜʵÓõÄ
Ò»¡£& ×î¾­³£±»Óõ½
Õâ¸öÓÃÔÚÒ»¸öÃüÁîµÄ×îºó£¬¿ÉÒÔ°ÑÕâ¸öÃüÁî·Åµ½ºǫִ́ÐÐ
¶þ¡£ctrl + z
¿ÉÒÔ½«Ò»¸öÕýÔÚǰִ̨ÐеÄÃüÁî·Åµ½ºǫ́£¬²¢ÇÒÔÝÍ£
Èý¡£jobs
²é¿´µ±Ç°ÓжàÉÙÔÚºǫ́ÔËÐеÄÃüÁî
ËÄ¡£fg ......

linux 0.11 Îļþϵͳ£¨Ò»£©

ÎļþϵͳºÍÄÚ´æ¹ÜÀí£¬ÒÔ¼°½ø³Ì¹ÜÀíÊDzÙ×÷ϵͳµÄºËÐIJ¿·Ö¡£Êý¾Ýͨ³£ÒÔÎļþµÄÐÎʽ´æ´¢ÔÚÉè ±¸ÉÏ£¬Òò´ËÎļþϵͳµÄ»ù±¾¹¦ÄܾÍÊÇÒÔijÖÖ¸ñʽ´æÈ¡/¿ØÖÆÎļþ¡£0.11°æµÄÄÚºËÖвÉÓÃÁËminix1.0°æµÄÎļþϵͳ¡£ÔÚ×îеÄ2.6°æÄÚºËÖУ¬½èÖúÓÚ VFS£¬ÏµÍ³Ö§³Ö50¶àÖÖÎļþϵͳ¡£
Ê×ÏȽéÉÜÒ»ÏÂminixÎļþϵͳ
minixÎļþϵͳºÍ±ê×¼unixÎļþϵͳ» ......

LinuxÉÏ»ñÈ¡Ö¸¶¨½ø³ÌµÄcpuʹÓÃÇé¿ö

ÕâÀï¼Ù¶¨Òª»ñÈ¡µ±Ç°µÇ¼Óû§Æô¶¯µÄtomcat½ø³ÌµÄcpuʹÓÃÇé¿ö
#!/bin/sh
_USER=`whoami`
_PS=`ps -ef | grep $_USER | grep catalina | grep tomcat`
_PID=`echo $_PS | awk '{print $2}'`
_CPUINFO=`top -b -n 1 -p $_PID | sed '$d' | sed -n '$p' | awk '{print $9}'`
echo $_CPUINFO
  ......

Linux findÃüÁîÏê½â


ÓÉÓÚfind¾ßÓÐÇ¿´óµÄ¹¦ÄÜ£¬ËùÒÔËüµÄÑ¡ÏîÒ²ºÜ¶à£¬ÆäÖд󲿷ÖÑ¡ÏֵµÃÎÒÃÇ»¨Ê±¼äÀ´Á˽âһϡ£¼´Ê¹ÏµÍ³Öк¬ÓÐÍøÂçÎļþϵͳ(
NFS)£¬findÃüÁîÔÚ¸ÃÎļþϵͳÖÐͬÑùÓÐЧ£¬Ö»Äã¾ßÓÐÏàÓ¦µÄȨÏÞ¡£ÔÚÔËÐÐÒ»¸ö·Ç³£ÏûºÄ×ÊÔ´µÄ ...
ÓÉÓÚfind¾ßÓÐÇ¿´óµÄ¹¦ÄÜ£¬ËùÒÔËüµÄÑ¡ÏîÒ²ºÜ¶à£¬ÆäÖд󲿷ÖÑ¡ÏֵµÃÎÒÃÇ»¨Ê±¼äÀ´Á˽âһϡ£¼´Ê¹ÏµÍ³ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ