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

Linuxµ¥Óû§Ä£Ê½£ºÐÞ¸ÄROOTÃÜÂëºÍgrub¼ÓÃÜ

Linux ϵͳ´¦ÓÚÕý³£×´Ì¬Ê±£¬·þÎñÆ÷Ö÷»ú¿ª»ú£¨»òÖØÐÂÆô¶¯£©ºó£¬Äܹ»ÓÉϵͳÒýµ¼Æ÷³ÌÐò×Ô¶¯Òýµ¼ Linux ϵͳÆô¶¯µ½¶àÓû§Ä£Ê½£¬²¢ÌṩÕý³£µÄÍøÂç·þÎñ¡£Èç¹ûϵͳ¹ÜÀíÔ±ÐèÒª½øÐÐϵͳά»¤»òϵͳ³öÏÖÆô¶¯Ò쳣ʱ£¬¾ÍÐèÒª½øÈëµ¥Óû§Ä£Ê½»òÐÞ¸´Ä£Ê½¶Ôϵͳ½øÐйÜÀíÁË¡£Ê¹Óõ¥Óû§Ä£Ê½ÓÐÒ»¸öÇ°Ìᣬ¾ÍÊÇÄúµÄϵͳÒýµ¼Æ÷£¨grub£©ÄÜÕý³£¹¤×÷£¬·ñÔòÒª½øÐÐϵͳά»¤¾ÍҪʹÓÃÐÞ¸´Ä£Ê½¡£ÌØ×¢£º½øÈëµ¥Óû§Ä£Ê½£¬Ã»ÓпªÆôÍøÂç·þÎñ£¬²»Ö§³ÖÔ¶³ÌÁ¬½Ó
Linux ϵͳÖв»Í¬µÄÔËÐ춱ð£¨Run Level£©´ú±íÁËϵͳµÄ²»Í¬ÔËÐÐ״̬£¬ÀýÈç Linux ·þÎñÆ÷Õý³£ÔËÐÐʱ´¦ÓÚÔËÐ춱ð3£¬ÊÇÄܹ»ÌṩÍøÂç·þÎñµÄ¶àÓû§Ä£Ê½£»¶øÔËÐ춱ð 1 Ö»ÔÊÐí¹ÜÀíԱͨ¹ý·þÎñÆ÷Ö÷»úµÄµ¥Ò»¿ØÖÆ̨½øÐвÙ×÷£¬¼´“µ¥Óû§Ä£Ê½”¡£
ÒÔcentosΪÀý£º
½øÈëµ¥Óû§Ä£Ê½
½øÈëµ¥Óû§Ä£Ê½µÄÇ°ÌáÊÇϵͳÒýµ¼Æ÷ÄÜÕý³£¹¤×÷¡£ÏÂÃæÒÔ GRUB ΪÀý˵Ã÷½øÈë·½·¨¡£ÔÚ GRUB Æô¶¯²Ëµ¥ÀïÓГa”¡¢“e”ºÍ“c”Èý¸ö²Ù×÷°´¼ü£¬Ê¹ÓÃÕâÈý¸ö°´¼ü¾ù¿É½øÈëµ¥Óû§Ä£Ê½¡£
·½·¨1 ʹÓà “a” ²Ù×÷°´¼ü½øÈëµ¥Óû§Ä£Ê½------ÍƼö£º¼òµ¥²Ù×÷
ÕâÊǽøÈëµ¥Óû§Ä£Ê½×î¿ìËٵķ½·¨¡£ÔÚ GRUB Æô¶¯²Ëµ¥ÀïʹÓà “a” ²Ù×÷°´¼ü±à¼­ kernel ²ÎÊý£¬ÔÚÐÐÄ©ÊäÈë single £¬ÒÔ¸æËß Linux Äں˺óÐøµÄÆô¶¯¹ý³ÌÐèÒª½øÈëµ¥Óû§Ä£Ê½£¬»Ø³µ¼´¿É ¡£ÈçͼËùʾ¡£

·½·¨2¡¢Ê¹Óà “e” ²Ù×÷°´¼ü½øÈëµ¥Óû§Ä£Ê½
ÔÚ GRUB Æô¶¯²Ëµ¥ÀïʹÓà “e” ²Ù×÷°´¼ü½øÈë CentOS µÄÆô¶¯²Ëµ¥Ïò½çÃæ £¬Òƶ¯¹â±êÖÁ“kernel”ÅäÖÃÏîÒ»ÐУ¬ÈçͼËùʾ¡£

½«¹â±ê¶¨Î»µ½ kernel ²Ëµ¥Ïî
°´ “e” ¼ü±à¼­ “kernel” ²Ëµ¥ÏÔÚÐÐÄ©ÊäÈë single £¬ÒÔ¸æËß Linux Äں˺óÐøµÄÆô¶¯¹ý³ÌÐèÒª½øÈëµ¥Óû§Ä£Ê½¡£
½«
kernel /vmlinuz-2.6.18-53.el5 ro root=/dev/VolGroup00/LogVolRoot
¸ü¸ÄΪ
kernel /vmlinuz-2.6.18-53.el5 ro root=/dev/VolGroup00/LogVolRoot single
¸ü¸Äºó°´»Ø³µ·µ»Ø CentOS Æô¶¯²Ëµ¥Ïî½çÃ棬ÈçͼËùʾ¡£

×îºó°´ “b” ¼üʹÓøü¸ÄºóµÄ CentOS Æô¶¯²Ëµ¥ÏîÆô¶¯µ¥Óû§Ä£Ê½¡£
·½·¨3¡¢Ê¹Óà “c” ²Ù×÷°´¼ü½øÈëµ¥Óû§Ä£Ê½
ÕâÊǽøÈëµ¥Óû§Ä£Ê½×îÂé·³µÄ·½·¨£¬Í¨³£²»Ê¹ÓÃÕâÖÖ·½·¨½øÈëµ¥Óû§Ä£Ê½£¬´Ë´¦Ö¼ÔÚÊìϤ GRUB ÃüÁîÐнçÃæ²Ù×÷¡£ÔÚ GRUB Æô¶¯²Ëµ¥ÀïʹÓà “c” ²Ù×÷°´¼ü½øÈë GRUB ÃüÁîÐнçÃæ¡£·Ö±ðʹÓà GRUB Ï嵀 root ¡¢kernel£¨ÔÚÐ


Ïà¹ØÎĵµ£º

VMÐéÄâ»úÏÂLinux arm COM(´®¿Ú)ÓëJTAG(²¢¿Ú) ÅäÖÃͼ½â


COMÅäÖà
ÏȽøÐÐÐéÄâ»úÉ豸ÅäÖÃ
ÔÚÍê³ÉLINUXÏÂϵͳÅäÖÃ
com¶Ë¿ÚÅäÖÃ
ÒÔºóÖ»ÒªÔÚÃüÁîÐÐÏÂÊäÈë >minicom »Ø³µ¾Í¿ÉÒÔ¿´µ½Õâ¸ö²Ëµ¥ÁË ºÇºÇ
JTAGÅäÖã¨Ï൱ÓÚwinϵÄH-JTAG£©
ÏÂÔØJflashѹËõ°ü tar½âѹµ½/Ŀ¼ÏÂ
´ò¿ªÐéÄâ»ú
½ÓºÃJTAG²¢¿ÚÏߣ¬½øÈëlinuxϵͳÊäÈëÃüÁî
......

linuxÏÂÎÞÏßÍø¿¨µÄÅäÖÃ


³£¼ûµÄÎÞÏß¼ÓÃÜ·½Ê½ÓÐwepºÍwpaÁ½´óÀà¡£
1.WEP¼ÓÃÜ·½Ê½
    ÕâÖÖ·½Ê½¼ÓÃܵÄÎÞÏß¿Í»§¶Ë¿ÉÖ±½ÓÓÃwireless-toolsÍê³ÉÎÞÏßÁ¬½ÓµÄ½¨Á¢¡£
ÈÝÒ×±»ºöÂÔµÄÒªµãÊÇÔÚÄÚºËÖÐÑ¡ÖÐieee80211_crypt_wepºÍieee80211_crypt£¬µ±È»»ù´¡µÄÎÞÏßÇý¶¯»¹ÊǵÃÔ¤ÏÈ×°ºÃ¡£
È»ºóÓÃ
iwconfig wlan0 essid "ÎÞÏßessid" channel <Ê ......

Linux½ø³Ì¹ÜÀíÃüÁîÏê½â(psºÍtop)

ת×Ô£ºhttp://www.vimer.cn
Linux½ø³Ì¹ÜÀíÃüÁîÏê½â(psºÍtop)
1.psÃüÁî
×÷ÓãºpsÃüÁîÖ÷Òª²é¿´ÏµÍ³Öнø³ÌµÄ״̬¡£
¸ñʽ£ºps [Ñ¡Ïî]
Ö÷ҪѡÏîÈçÏ¡£
-A£ºÏÔʾϵͳÖÐËùÓнø³ÌµÄÐÅÏ¢¡£
-e£ºÏÔʾËùÓнø³ÌµÄÐÅÏ¢¡£
-f£ºÏÔʾ½ø³ÌµÄËùÓÐÐÅÏ¢¡£
-l£ºÒÔ³¤¸ñʽÏÔʾ½ø³ÌÐÅÏ¢¡£
-r£ºÖ»ÏÔʾÕýÔÚÔËÐеĽø³Ì¡£
-u£ºÏÔʾÃæÏòÓû§µÄ ......

linux fork()º¯Êýѧϰ

#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
int main()
{
    pid_t pid;
    static int n = 0;
    printf("fork!\n"); /*printf("fork!")*/
    switch (pid = fork())
    {
 &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ