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

Linux´ÅÅÌ´æ´¢Çø¹ÜÀíµÄÉîÈë½âÎö

Linux´ÅÅÌ´æ´¢Çø¹ÜÀíËãµÄÉÏÒ»¸ö¼¼ÇÉ£¬ºÜ¶àÅóÓÑÔÚÕâÉÏÃæ³£³£ÎÊÎÒ£¬½ñÌìÎҾͰÑÕâ·½ÃæµÄ¶«Î÷»ã×Üһϣ¬´ÓLinuxÌØÓеĽ»»»·ÖÇøµÄÔ­Àí¿ªÊ¼½éÉÜLinux´ÅÅÌ´æ´¢Çø¹ÜÀíµÄÔ­Àí¼°¼¼ÇÉ¡£
Linux´ÅÅÌ´æ´¢Çø¹ÜÀíÔ­Àíƪ
1. ½»»»¿Õ¼äÊÇʲô
Linux ÖÐµÄ ½»»»¿Õ¼ä£¨Swap space£© ÔÚÎïÀíÄڴ棨RAM£©±»³äÂúʱ±»Ê¹Óá£Èç¹ûϵͳÐèÒª¸ü¶àµÄÄÚ´æ×ÊÔ´£¬¶øÎïÀíÄÚ´æÒѾ­³äÂú£¬ÄÚ´æÖв»»îÔ¾µÄÒ³¾Í»á±»ÒƵ½½»»»¿Õ¼äÈ¥¡£ËäÈ»½»»»¿Õ¼ä¿ÉÒÔΪ´øÓÐÉÙÁ¿ÄÚ´æµÄ»úÆ÷Ìṩ°ïÖú£¬µ«ÊÇÕâÖÖ·½·¨²»Ó¦¸Ã±»µ±×öÊǶÔÄÚ´æµÄÈ¡´ú¡£½»»»¿Õ¼äλÓÚÓ²ÅÌÇý¶¯Æ÷ÉÏ£¬Ëü±È½øÈëÎïÀíÄÚ´æÒªÂý¡£
½»»»¿Õ¼ä¿ÉÒÔÊÇÒ»¸öרÓõĽ»»»·ÖÇø£¨ÍƼöµÄ·½·¨£©£¬½»»»Îļþ£¬»òÁ½ÕßµÄ×éºÏ¡£ ½»»»¿Õ¼äµÄ×Ü´óСӦ¸ÃÏ൱ÓÚÄãµÄ¼ÆËã»úÄÚ´æµÄÁ½±¶ºÍ 32 MBÕâÁ½¸öÖµÖнϴóµÄÒ»¸ö£¬µ«ÊÇËü²»Äܳ¬¹ý 2048 MB£¨2 GB£©¡£
2. Ìí¼Ó½»»»¿Õ¼ä
Linux´ÅÅÌ´æ´¢Çø¹ÜÀíʱ£¬Äã»áÓбØÒªÔÚ°²×°ºóÌí¼Ó¸ü¶àµÄ½»»»¿Õ¼ä¡£ÀýÈ磬Äã°ÑϵͳÄÚ´æ´Ó 64 MB Éý¼¶µ½ 128 MB£¬µ«ÊÇÄãÖ»ÓÐ 128 MB µÄ½»»»ÄÚ´æ¡£Èç¹ûÄãÖ´ÐеÄÊÇ´óÁ¿Ê¹ÓÃÄÚ´æµÄ²Ù×÷»òÔËÐÐÐèÒª´óÁ¿ÄÚ´æµÄ³ÌÐò£¬°Ñ½»»»ÇøÔö¼Óµ½ 256 MB ¿ÉÄÜ»á¶ÔÄãÓÐÀû¡£
ÄãÓÐÁ½ÖÖÑ¡Ôñ£ºÌí¼ÓÒ»¸ö½»»»·ÖÇø»òÌí¼ÓÒ»¸ö½»»»Îļþ¡£ÍƼöÄãÌí¼ÓÒ»¸ö½»»»·ÖÇø£¬²»¹ý£¬ÈôÄãûÓжàÉÙ¿ÕÏпռä¿ÉÓ㬴´½¨½»»»·ÖÇø¿ÉÄܻ᲻´óÈÝÒס£
ÒªÌí¼ÓÒ»¸ö½»»»·ÖÇø£¨¼ÙÉè /dev/hdb2 ÊÇÄãÏëÌí¼ÓµÄ½»»»·ÖÇø£©£º
Ó²ÅÌÇý¶¯Æ÷²»ÄÜÔÚ±»Ê¹Ó㨷ÖÇø²»Äܱ»¹ÒÔØ£¬½»»»·ÖÇø²»Äܱ»ÆôÓã©¡£Òª´ïµ½ÕâһĿµÄµÄ×î¼òµ¥Linux´ÅÅÌ´æ´¢Çø¹ÜÀí·½·¨ÊÇÔÚ¾ÈԮģʽÏÂÒýµ¼ÄãµÄϵͳ¡£µ±Ìáʾ¹ÒÔØÎļþϵͳʱ£¬Ñ¡Ôñ ¡¸Ìø¹ý¡¹ ¡£
Èç¹ûÇý¶¯Æ÷²»°üº¬Èκα»Ê¹ÓõķÖÇø£¬Ä㻹¿ÉÒÔжÔØÕâЩ·ÖÇø£¬Ê¹Óà swapoff ÃüÁîÀ´¹Ø±ÕÓ²ÅÌÇý¶¯Æ÷ÉϵÄËùÓн»»»¿Õ¼ä¡£
Linux´ÅÅÌ´æ´¢Çø¹ÜÀí¼¼ÇÉƪ
ʹÓà parted »ò fdisk À´´´½¨½»»»·ÖÇø¡£ parted ±È fdisk ʹÓÃÆðÀ´¸ü·½±ã£¬Òò´Ë£¬Ö»ÓÐ parted ÔÚÕâÀï»á±»ËµÃ÷¡£ÒªÊ¹Óà parted À´´´½¨½»»»·ÖÇø£º
ÔÚ shell ÌáʾÏÂÒÔ¸ùÓû§Éí·Ý¼üÈëÃüÁ parted /dev/ hdb ¡£ÕâÀïµÄ /dev/ hdb ÊÇÄãµÄ´øÓпÕÏпռäµÄÓ²ÅÌÇý¶¯Æ÷µÄÉ豸Ãû³Æ¡£
ÔÚ (parted) ÌáʾÏ£¬¼üÈë print À´²é¿´ÏÖ´æµÄ·ÖÇøºÍ¿ÕÏпռäµÄÊýÁ¿¡£ÆðÖ¹ÖµÒÔ MB Ϊµ¥Î»¡£Åж¨Ó²ÅÌÇý¶¯Æ÷ÉϵĿÕÏпռäÊýÁ¿£¬ÒÔ¼°ÄãÏë¸øн¨µÄ½»»»·ÖÇø·ÖÅäµÄ¿Õ¼äÊýÁ¿¡£
ÔÚ (parted) ÌáʾÏ£¬¼üÈë mkpartfs part-type linux-swap start end £¬ÕâÀïµÄ part-type ÊÇ primary¡¢extended¡¢logical ÖеÄÒ»¸ö£¬ start ÊÇ·ÖÇøµÄÆ


Ïà¹ØÎĵµ£º

Linux iptableÎĵµ

×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......

Linux ÐÔÄܼà²â¹¤¾ß¼°µ÷ÓŽéÉÜ

Linux ÐÔÄܼà²â¹¤¾ß¼°µ÷ÓŽéÉÜ
LINUXϵͳÏ£¬´ó¶àÊýµÄÐÔÄܼà²â¹¤¾ß±£´æÔÚ/procĿ¼Ï¡£ÕâÀïÎÒÃǽ«Linux AS ºÍ SUSE LINUX EnterpriseServerÖУ¬ÃüÁîÐм°Í¼Ðη½Ê½ÏµÄÐÔÄܼà²â¹¤¾ß×ö¸ÅÀ¨ÐÔ½éÉÜ¡£ÕâЩ¹¤¾ßÓÐЩÔÚϵͳ¹¤¾ßÅÌÀÓÐЩ¿ÉÒÔ´ÓÍøÉÏÏÂÔØ¡£sar,iostat,ºÍpstatÕâÈý¸ö¹¤¾ßÔÚdistributionCDÀҲ¿ÉÒÔ´ÓÍøÉÏÏÂÔØ£¬ÍøÖ·Ê ......

ÈÃlinuxÆô¶¯ºó×Ô¶¯½øÈëͼÐνçÃæ»òÎı¾½çÃ棨תÔØ£©


a.¿ª»ú½øÈëͼÐνçÃ棺°²×°Ê±Ñ¡Í¼ÐÎÆô¶¯·½Ê½»ò°Ñ/etc /inittabµÄid:x:initdefault:ÕâÐиijÉid:5:initdefault:¡£
b.¿ª»ú²»½øÈëͼÐνçÃ棺°²×°Ê±Ñ¡Îı¾Æô¶¯·½Ê½»ò°Ñ/etc/inittabµÄid:x:initdefault:ÕâÐиijÉid:3:initdefault:¡£
*inittabÊÇ×öʲôµÄ£¿
ÔÚKERNELÆðÀ´Ö®ºó£¬½«Éú³ÉµÚÒ»¸ö½ø³Ì——init£¬Êµ¼ÊÉÏÊÇÖ´Ð ......

LinuxÏÂperlÄ£¿éµÄ°²×°

ÏȲο´Ò»ÏÂĿ¼ÏµÄREADMEÎĵµ
Ö÷ÒªÓÐÒÔϼ¸¸ö²½Ö裺
1) perl **.PL  Éú³Émakefile Îļþ
2) make
3) make test (this is optional£¬Èç¹ûÕⲽûɶÎÊÌâ,»áÏÔʾһÇÐok)
4) make install
³öÏÖµÄÎÊÌ⣬¶à¿´ÏÂÌáʾ£¬Ò»°ã¶¼ÊÇȱ°üÉÙ¿â ......

Linux °²×°mysql

 
1¡¢¶þ½øÖÆÎļþ£¨tar.gz£©°²×°
ÏÈ´´½¨Óû§ºÍÓû§×é
 su - root
groupadd mysql
useradd -g mysql mysql
½âѹ¶þ½øÖÆÎļþ¡£
gunzip -c filename | tar -xf -
¸´ÖÆĿ¼/home/mysqlµ½/usr/local£»
´´½¨mysqlÐí¿É±í£º
linux:/usr/local/mysql #scripts/mysql_install_db --user=mysql
ÉèÖöþ½øÖÆËùÓÐȨ£¬Ê ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ