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

LinuxÏÂÓÃBusy BoxÖÆ×÷RamdiskÈ«¹ý³Ì

  -------------------------------------------------------------------------------------------------------
//By:yuyongbao
//QQ:673360056
LinuxÏÂÓÃBusy BoxÖÆ×÷RamdiskÈ«¹ý³Ì
1 ½¨Á¢¸ùÎļþϵͳ½á¹¹
#mkdir rootfs
#cd rootfs
#mkdir bin dev etc lib proc sbin tmp usr var
#chmod 1777 tmp
#mkdir usr/bin usr/lib usr/sbin
#mkdir var/lib var/lock var/log var/run var/tmp
#chmod 1777 var/tmp
2 ×¼±¸Á´½Ó¿â
#cd ${OBJ_LIB}/lib (${OBJ_LIB}Êǽ»²æ±àÒë»·¾³µÄĿ¼)
#for file in libc libcrypt libdl libm \
>libpthread libresolv libutil
>do
>cp $file-*.so /home/fortis/rootfs/lib
>cp -d $file.so.[*0-9] /home/fortis/rootfs/lib
>done
#cp -d ld*.so* /home/fortis/rootfs/lib
3 ʹÓÃbusyboxÖÆ×÷ϵͳӦÓóÌÐò
3.1 ÏÂÔØbusybox£¨http://www.busybox.net/£©²¢½âѹ¡£
3.2 ½øÈë½âѹºóµÄĿ¼£¬ÅäÖÃBusybox
$make menuconfig
Busybox Settings >
General Configuration >
[*] Support for devfs
Build Options >
[*] Build BusyBox as a static binary (no shared libs)
/* ½«busybox±àÒëΪ¾²Ì¬Á¬½Ó£¬ÉÙÁËÆô¶¯Ê±ÕÒ¶¯Ì¬¿âµÄÂé·³ */
[*] Do you want to build BusyBox with a Cross Compiler?
(/usr/local/arm/3.3.2/bin/armlinux)
Cross Compiler prefix/* Ö¸¶¨½»²æ±àÒ빤¾ß·¾¶ */
Init Utilities >
[*] init
[*] Support reading an inittab file
/* Ö§³Öinit¶ÁÈ¡/etc/inittabÅäÖÃÎļþ£¬Ò»¶¨ÒªÑ¡ÉÏ */
Shells >
Choose your default shell (ash) >
/* (X) ash Ñ¡ÖÐash£¬ÕâÑùÉú³ÉµÄʱºò²Å»áÉú³Ébin/shÎļþ
* ¿´¿´ÎÒÃÇÇ°Í·µÄlinuxrc½Å±¾µÄÍ·Ò»¾ä£º
* #!/bin/sh ÊÇÓÉbin/shÀ´½âÊÍÖ´ÐеÄ
*/
[*] ash
Coreutils >
[*] cp
[*] cat
[*] ls
[*] mkdir
[*] echo (basic SuSv3 version taking no options)
[*] env
[*] mv
[*] pwd
[*] rm
[*] touch
Editors >
[*] vi
Linux System Utilities >
[*] mount
[*] umount
[*] Support loopback mounts
[*] Support for the old /etc/mtab file
Networking Utilities >
[*] inetd
/*
* Ö§³Öinetd³¬¼¶·þÎñÆ÷
*/
3.3 ±àÒë²¢°²×°Busybox
$make TARGET_ARCH=arm CROSS=armlinux\
PREFIX=/home/arm/dev_home/


Ïà¹ØÎĵµ£º

Linux coreÎļþÉèÖÃ

ÔÚÒ»¸ö³ÌÐò±ÀÀ£Ê±£¬Ä¬ÈÏÇé¿öÏÂÊDz»²úÉúcoreÎļþ¡£
ÏÂÃæµÄÃüÁî¿ÉÒÔ¼ì²éÉú³ÉcoreÎļþµÄÑ¡ÏîÊÇ·ñ´ò¿ª:
$ulimit -a¸ÃÃüÁÏÔʾËùÓеÄÓû§¶¨ÖÆ£¬ÆäÖÐÑ¡Ïî-a´ú±í“all”¡£
$ulimit -c unlimitedÀ´ÈÃÌض¨µÄÓû§¿ÉÒÔ²úÉúcoreÎļþ
coreÎļþ½ö½öÊÇÒ»¸öÄÚ´æÓ³Ïó(ͬʱ¼ÓÉϵ÷ÊÔÐÅÏ¢)£¬Ö÷ÒªÊÇÓÃÀ´µ÷ÊԵġ£Èç¹ûÄú¸ù±¾¾Í²»Ïë ......

linux ϵͳԴÂë°²×° mysql ¡¢fedora10 mysql5

²Ù×÷ϵͳ Fedora 10
mysql°²×°°ü mysql-5.0.85.tar.gz
1¡¢´´½¨mysqlÓû§×éºÍÓû§Ãû
# groupadd mysqlGroup
  £¨´´½¨×飩
# useradd -g mysqlGroup mysqlUser 
£¨´´½¨Ò»ÕʺÅ)
2¡¢½âѹ°²×°°ü £¬µ±Ç°Ä¿Â¼Îª /home/hust/down/mysql/
# tar -xvzf mysql-5.0.85.tar.gz 
      ......

LINUXʹÓüǼ

-------------------------------------------------------------------------------------------------------
By:yuyongbao
QQ:673360056
£±¡¢  linuxϹ²ÏíÎļþ¡£°²×°smbserver¡£È»ºóÔÚ¡¶ÏµÍ³ÉèÖá·Öдò¿ª¡¶·þÎñÆ÷ÉèÖ᷵ġ¶smb¡¡server¡··þÎñÆ÷£¬ÊäÈëÏà¹Ø·¾¶¼´¿É¡£È»ºóÔÚwindowÖУ¬Ê¹ÓÃÍøÂçÁÚ¾Ó²éÕÒlinux¡££¨×¢ ......

´ÓÓ²ÅÌÆô¶¯linuxϵͳ

 -------------------------------------------------------------------------------------------------------
//By:yuyongbao
//QQ:673360056
//ƽ̨powerpc mpc8379e linux 2.6.22
£±¡¢ÏÈÓÃfdisk ¸øÓ²ÅÌ·ÖÒ»¸öÇø£¬ÓÃ×÷Îļþϵͳ¡£²ÎÕÕu-boot-ppc±àÒë˵Ã÷Ò»ÎÄ¡£
£²¡¢ÓÃmke2fs¸ñʽ»¯Ó²Å̵ÄÒ»¸ö·ÖÇømke2fs /dev/sd ......

´ÓSD¿¨Æô¶¯linuxϵͳ

  -------------------------------------------------------------------------------------------------------
//By:yuyongbao
//QQ:673360056
//ƽ̨powerpc mpc8379e linux 2.6.22
£±¡¢ÏÈÓÃfdisk ¸øSD¿¨·ÖÇø£¬ÓÃ×÷Îļþϵͳ¡£
½«¶Á¿¨Æ÷²åÈëPC»úÐéÄâ»ú£¬ÔÚPC»úÉÏÖ´ÐÐfdisk /dev/sdb
Ñ¡Ôñn¡¡¡£¡£¡£¡£¡£¡£¡£¡£² ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ