Linux·ÖÇø·½°¸×î½ÚÊ¡µÄ·ÖÇø·½°¸
ÏëÖªµÀµ½Linux·ÖÇø·½°¸µÄÕæÏàô£¬ÏëÖªµÀLinux·ÖÇø·½°¸ÖвØÓеÄÄÚÔÚ°ÂÒåô£¬Ö»ÓÐÎÒÀ´¸ø´ó¼ÒÈ«Ãæ½²½â½éÉÜLinux·ÖÇø·½°¸
×îÐÂLinux·ÖÇø·½°¸
ÎҵķþÎñÆ÷ÊÇ500G¡£×îÖØÒªµÄÊÇ/var·ÖÇøÒ»¶¨Òª´ó(²»ÂÛpostfixÓʼþ£¬»¹ÊÇLAMPµÄWEB ·þÎñÆ÷µÈ£©¡£×îºÃÊÇ400GÒÔÉÏ¡£¾ßÌåµÄ/boot Ö»Òª100M¾Í×ã¹»ÁË¡£ÏÂÃæÊÇÎҵķÖÇø·½°¸£ºÓ²ÅÌ500G
·þÎñÆ÷Linux·ÖÇø·½°¸ £º·ÖÇøÀàÐÍ ·ÖÇøµÄʵ¼Ê´óС
/ 1G-2G (×îÉÙÒª150–250MB)
/boot 32M-100M (Æô¶¯·ÖÇø£¬×î¶àÖ»Òª100M×óÓÒ)
/opt 100M-1G (¸½¼ÓÓ¦ÓóÌÐò)
/tmp 40M-1000M (×î´ó¿ÉÒÔÉèΪ1G×óÓÒ,Èç¹û¼ÓÔØISO¾µÏñÎļþ¾ÍÉèΪ4G×óÓÒ°É£¬Ò»°ã²»ÓÃÄÇô¶à)
/home 2G-10G (ÿ¸öÓû§100M×óÓÒ£¬¾ßÌå×Ô¶¨¡£Óû§Ä¿Â¼¡£)
/usr 3G-10G (×îºÄÓÿռäµÄ²¿·Ý¡£×îÉÙÒª500M×óÓÒ£¬Ò»°ã¿íËɵķþÎñÆ÷Òª·Öµ½4-6G)
/usr/local 3G-15G (×ÔÒÑ°²×°³ÌÐò°²×°ÔÚ´Ë)
/var
>
2G–Ó²ÅÌÓàÏÂÈ«²¿¿Õ¼ä ( ×îÉÙ300M-500M£¬Ò»°ã2-3G,×ö·þÎñÆ÷µÄ»°°ÑÉÏÃæÓàϵĿռ䶼·Ö¸øËü)
×ÀÃæLinux·ÖÇø·½°¸
/ 1G
/boot 32M
/opt 100M
/tmp 50M
/home 1G-10G
/usr 3G-6G
/usr/local 3G-5G
/var 500MÒÔÉÏ
×î½ÚÊ¡µÄ·ÖÇø·½°¸£¨·þÎñÆ÷²»ÍƼö£©£ºÎļþĿ¼ ×îÉÙ Ò»°ã °²×°ºó´óСCentOS5.2
/ 150M-250M 500M-2G (378M)
/boot 32M-100M 64M (13M)
/opt 30M-100M 50M (19M)
/tmp 40-100M 50M (37M)
/home 100M-5G 1G (483M)
/usr
>
500M 4-6G 2.5G (2.0G)
/usr/local 500M 2-5G 2G (1.2G)
/var 300-500M 2-3G 500M (296M)
/varĿ¼£¬Èç¹ûÊÇ·þÎñÆ÷£¬¾Í°ÑÒÀÉÏÃæµÄ°ÑÆäËûµÄ·ÖÇø·ÖÍêÖ®ºóµÄ¿Õ¼äÈ«²¿¸ø/var¼´·ÖΪ×î´óµÄ·ÖÇø¡£http·þÎñÆ÷Ŀ¼/var/www,postfix·þÎñÆ÷/var/mail.Ò»°ã¶¼ÔÚ/varĿ¼ÀïÃæ.
opt ¸½¼ÓµÄLinux·ÖÇø·½°¸Ó¦ÓóÌÐòÈí¼þ°ü
Linux·ÖÇø·½°¸¸ù·ÖÇø / ±ØÐë×ÜÊÇÎïÀíµØ°üº¬ /etc¡¢/bin¡¢/sbin¡¢/lib ºÍ
/dev£¬·ñÔòÄú½«²»ÄÜÆô¶¯ÏµÍ³¡£Linux·ÖÇø·½°¸µäÐ͵ĸù·ÖÇøÐèÒª 150–250MB
Ïà¹ØÎĵµ£º
תÔØ×Ô£ºhttp://fanqiang.chinaunix.net/a4/b8/20010811/0905001105.html
LinuxϵĶàÏ̱߳à³Ì
±¾Îijö×Ô:http://www.china-pub.com ×÷Õß: Ò¦¼Ì·æ (2001-08-11 09:05:00)
1
ÒýÑÔ
¡¡¡¡Ị̈߳¨thread£©¼¼ÊõÔçÔÚ60Äê´ú¾Í±»Ìá³ö£¬µ«ÕæÕýÓ¦ÓöàÏ̵߳½²Ù×÷ϵͳÖÐÈ¥£¬ÊÇÔÚ80Äê´úÖÐÆÚ£¬solarisÊÇÕâ·½ÃæµÄٮٮ ......
½ñÌìÅöµ½¸öÎÊÌ⣬ÖÐÎÄÎļþºÍ´øÖÐÎĵÄĿ¼ͨ¹ýSVNÈ¡µ½WINDOWSϵͳ£¬È»ºóͨ¹ýSCP´«µ½LINUX·þÎñÆ÷Ö®ºó£¬³öÏÖÁËÎļþÃû¼°Ä¿Â¼Ãû±àÂ뼯¸Ä±äµÄÎÊÌâ¡££¨¶¼±ä³ÉÁËGBK£©
×îºóͨ¹ýÏÂÔØÒ»¸ölinuxרÃÅÓÃÓÚת»» ÎļþÃûºÍĿ¼Ãû µÄ¹¤¾ß£¬convmv
ת»»Ö¸ÁîÈçÏ£º
convmv -f [Ôʼ±àÂë] -t [Ä¿±ê±àÂë] -r(Ŀ¼ѻ·) --notest(ʵ¼Ê¸Ä±ä£¬·ñ ......
Ò»)ANSI clockº¯Êý
1)¸ÅÊö:
clock º¯ÊýµÄ·µ»ØÖµÀàÐÍÊÇclock_t,Ëü³ýÒÔCLOCKS_PER_SECÀ´µÃ³öʱ¼ä,Ò»°ãÓÃÁ½´Îclockº¯ÊýÀ´¼ÆËã½ø³Ì×ÔÉíÔËÐеÄʱ¼ä.
ANSI clockÓÐÈý¸öÎÊÌâ:
1)Èç¹û³¬¹ýÒ»¸öСʱ,½«Òªµ¼ÖÂÒç³ö.
2)º¯ÊýclockûÓп¼ÂÇCPU±»×Ó½ø³ÌʹÓõÄÇé¿ö.
3)Ò²²»ÄÜÇø·ÖÓû§¿Õ¼äºÍÄں˿ռä.
ËùÒÔclockº¯ÊýÔÚlinuxϵͳÉϱäµÃ ......
1¡¢vi /etc/resolv.conf
Ôö¼ÓÒÔÏÂÄÚÈÝ£º
nameserver DNSserver_ip_address1
nameserver
DNSserver_ip_address2
ÈçÏ£º
[root@REDHATAS5 /]# cat /etc/resolv.conf
nameserver 192.168.88.1
2¡¢²âÊÔDNSÊÇ·ñÉúЧ
[root@Develop-Server ~]# nslookup www.baidu.com
Server: &nb ......
du -sh * ²é¿´µ±Ç°Ä¿Â¼ÏµÄÎļþ¼Ð´óС
du ÃüÁî
ÓÃ;
¸ÅÊö´ÅÅÌʹÓá£
Óï·¨
du [ -a | -s ] [ -k ] [ -m ] [ -g ][ -l ] [ -r ] [ -x ] [ -H | -L ][ File ... ]
ÃèÊö
duÃüÁîÏÔʾÓÃÓÚÎļþµÄ¿éµÄÊýÁ¿¡£Èç¹ûÖ¸¶¨µÄFile²ÎÊýʵ¼ÊÉÏÊÇÒ»¸öĿ¼£¬¾ÍÒª±¨¸æ¸ÃĿ¼ÄÚµÄËùÓÐÎļþ¡£Èç¹ûûÓÐÌṩ File²ÎÊý£¬duÃüÁîÊ¹Ó ......