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

linux´ÅÅ̲Ù×÷ÃüÁîÏê½â



 
linux´ÅÅ̲Ù×÷ÃüÁîÏê½â
ÊÕ²Ø



1.·ÖÇøÓë¸ñʽ»¯Ô­Àí
Ó²Å̵ķÖÇø·ÖÖ÷MBR£¨446byte£©,Ö÷·ÖÇø±í(64byte)£¬·ÖÇø.
2.ʹÓÃlinuxÖеÄfdisk·ÖÇø
fdisk /dev/sdb
p ´òÓ¡·ÖÇø±í
t ת»»·ÖÇø±í
w д½ø·ÖÇø±í
n н¨·ÖÇø
v ¼ì²é·ÖÇø
×¢£ºfdiskʹÓÃÍêÒªÖØÐÂÆô¶¯.ÐÂÓ²Å̲»ÓÃ.
3.linuxµÄ¸ñʽ»¯Èí¼þ
mkfs-Ö§³Öext2,ext3,vfat,msdos,jfs,reiserfsµÈ
Ó÷¨1£ºmkfs -t
Àý£º££mkfs -t ext3 /dev/hdb2
Ó÷¨2£ºmkfs.
Àý£º££mkfs.vfat /dev/sdb3
mke2fs-Ö§³Öext2/ext3Îļþϵͳ
Ó÷¨£ºmke2fs [-j]
Àý£º££mke2fs -j /dev/sdb2
×¢£º mke2fs¼ÓÉÏ-jµÄ»°£¬Òâ˼ÊǼÓÈÕÖ¾£¬¾ÍÊÇext3µÄ·ÖÇø¡£
mkswap ¶Ôswap£¬ÒªÓÃmkswapÃüÁî³õʼ»¯
4.Ó²ÅÌ·ÖÇøµÄ¹ÒÔØ
¹ÒÔØÃüÁî -mount
Àý£º ££mount /dev/sdb2 /mnt/sd2
ÔØÃüÁî -umount
Àý£º ££umount /dev/sdb2
дÈë/etc/fstab
/dev/sdb2 /mnt/sd2 ext3 defaults 0 0
×¢: µÚÒ»¸ö0£¬±íÃ÷·ÖÇø¡£µÚ¶þ¸ö 0±íÃ÷linuxÆô¶¯Ê±£¬ÊÇ·ñ×Ô¼ì
¼ì²émountÐÅÏ¢
#df -T
5.ʹÓþí±ê¹ÒÔØ
Ìí¼Ó¾í±ê £­e2label
Àý£º ££e2label /dev/sdb2 test
¸ù¾Ý¾í±ê¹ÒÔØ
Àý£º ££mount LABEL=test /mnt/sd2
дÈë/etc/fstab
LABEL=test /mnt/sd2 ext3 defaules 0 0
6.ext2/ext3µÄ¹ÒÔØÑ¡Ïî
ro/rw Ö»¶Á£¯¶Áд
exec/noexec ÔÊÐí£¯²»ÔÊÐí¿ÉÖ´ÐÐ
dev/nodev ÔÊÐí£¯²»ÔÊÐíÉ豸Îļþ
suid,sgid/nosuid,nosgid ÔÊÐí£¯²»ÔÊÐísuid,sgidÎļþ
atime/noatime ¸üУ¯²»¸üнڵãµÄ·ÃÎÊʱ¼ä
async/sync Òì²½£¯Í¬²½´ÅÅÌI£¯O
user/nouser ÔÊÐí£¯²»ÔÊÐíÆÕͨÓû§¹ÒÔØ´ÅÅÌ£¬ÓÃÔÚ/etc/fstabÎļþÖеÄÑ¡Ïî
×¢£º¹ÒÔعýµÄĿ¼Ó㬣­oÑ¡Ïî¿ÉÒÔÖØйÒÔØ


Ïà¹ØÎĵµ£º

LinuxÖÐ/usrºÍ/varĿ¼Ïê½â

/usrÎļþϵͳ
¡¡¡¡/usr Îļþϵͳ¾­³£ºÜ´ó£¬ÒòΪËùÓгÌÐò°²×°ÔÚÕâÀï. /usr ÀïµÄËùÓÐÎļþÒ»°ãÀ´×ÔLinux distribution£»±¾µØ°²×°µÄ³ÌÐòºÍÆäËû¶«Î÷ÔÚ/usr/local ÏÂ.ÕâÑù¿ÉÄÜÔÚÉý¼¶Ð°æϵͳ»òÐÂdistributionʱÎÞÐëÖØа²×°È«²¿³ÌÐò.
/usr/X11R6  
X WindowϵͳµÄËùÓÐÎļþ.Ϊ¼ò»¯XµÄ¿ª·¢ºÍ°²×°£¬XµÄÎļþûÓм¯³Éµ ......

Linux¾²Ì¬¿âºÍ¶¯Ì¬¿â

¿â´Ó±¾ÖÊÉÏÀ´ËµÊÇÒ»ÖÖ¿ÉÖ´ÐдúÂëµÄ¶þ½øÖƸñʽ£¬¿ÉÒÔ±»ÔØÈëÄÚ´æÖÐÖ´ÐС£¿â·Ö¾²Ì¬¿âºÍ¶¯Ì¬¿âÁ½ÖÖ¡£ 
¾²Ì¬¿âºÍ¶¯Ì¬¿âµÄÇø±ð
1. ¾²Ì¬º¯Êý¿â
    ÕâÀà¿âµÄÃû×ÖÒ»°ãÊÇlibxxx.a£»ÀûÓþ²Ì¬º¯Êý¿â±àÒë³ÉµÄÎļþ±È½Ï´ó£¬ÒòΪÕû¸ö º¯Êý¿âµÄËùÓÐÊý¾Ý¶¼»á±»ÕûºÏ½øÄ¿±ê´úÂëÖУ¬ËûµÄÓŵã¾ÍÏÔ¶øÒ×¼ûÁË£¬¼´±àÒëºóµÄÖ ......

linuxÏÂgtkÖÐʹÓÃCÁ¬½Ómysql

Code:
1.»·¾³ÅäÖÃ
Ò»°ãÇé¿öÏ°²×°ÁËMySQLµÄ»úÆ÷ºÜÉÙ°²×°¿ª·¢°ü£¬Õâ¸öÐèҪעÒâ¡£Ò²¾ÍÊÇÄúÐèÒªÔÚ³ÌÐòÖаüº¬ÕâÑùµÄÓï¾ä£º
#include <mysql.h>
Èç¹ûÔÚ±àÒëµÄʱºòÌáʾº¬ÓÐÀàËÆÓÚÕÒ²»µ½ mysql.h µÄÐÅÏ¢£¬Õâ¾Í˵Ã÷ÄúûÓа²×°Ïà¹Ø¿ª·¢°ü¡£
»¹ÓÐÄú±ØÐ뽨Á¢Ò»¸öÊý¾Ý¿âÓëһЩ±í£¬Õâ¸öÔÚ±¾ÎÄÖлáʹÓá£
2.ÎÒÃÇÏÈÁ´½ÓÊ ......

ARM ÓëǶÈëʽlinuxµÄÈëÃŽ¨Òé

Ô­Îijö´¦£ºhttp://blog.mcuol.com/User/hzami/Article/8116_1.htm
ÓÉÓںܶàÈË×ÜÎÊÕâ¸öÎÊÌ⣬ËùÒÔÕâÀï×öÒ»¸ö×ܽáÎĵµ¹©´ó¼Ò²Î¿¼¡£ÕâÀï±ØÐëÏÈ˵Ã÷£¬ÒÔϵIJ½Ö趼ÊÇÕë¶ÔLinuxϵͳµÄ£¬²¢²»ÃæÏòWinCE¡£Ò²ÐíÄã
»á×¢Òâµ½£¬ÏÖÔÚ×öǶÈëʽµÄÈËÖУ¬×ölinuxÑо¿µÄÈËÔ¶±È×öWinCEµÄÈ˶࣬ºÜ¶à²ú¼ÒÌṩµÄ×ÊÁÏÒ²ÊÇÒÔlinuxΪÖ÷¡£ÎÒÒ»Ö±ºÜÄÑ ......

Redhat LinuxÍø¿¨ÅäÖÃÓë°ó¶¨


Redhat LinuxµÄÍøÂçÅäÖ㬻ù±¾ÉÏÊÇͨ¹ýÐ޸ļ¸¸öÅäÖÃÎļþÀ´ÊµÏֵģ¬ËäȻҲ¿ÉÒÔÓÃifconfigÀ´ÉèÖÃIP£¬ÓÃrouteÀ´ÅäÖÃĬÈÏÍø¹Ø£¬ÓÃhostnameÀ´ÅäÖÃÖ÷»úÃû£¬µ«ÊÇÖØÆôºó»á¶ªÊ§¡£
Ïà¹ØµÄÅäÖÃÎļþ
/ect/hosts
ÅäÖÃÖ÷»úÃûºÍIPµØÖ·µÄ¶ÔÓ¦
/etc/sysconfig/network
ÅäÖÃÖ÷»úÃûºÍÍø¹Ø
/etc/sysconfig/network-scripts/ifcfg-eth0 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ