дµÃÂùºÃµÄlinuxѧϰ±Ê¼Ç
linuxĿ¼¼Ü¹¹
/ ¸ùĿ¼
/bin ³£ÓõÄÃüÁî
binary file µÄÄ¿錄
/boot ´æ·ÅϵͳÆô¶¯Ê±±ØÐë¶ÁÈ¡µÄµµ°¸£¬°üÀ¨ºËÐÄ
(kernel) ÔÚÄÚ
/boot/grub/menu.lst GRUBÉèÖÃ
/boot/vmlinuz ÄÚºË
/boot/initrd ºËÐĽâ壓縮ËùÐè
RAM Disk
/dev ϵͳÖܱßÉ豸
/etc ϵͳÏà¹ØÉ趨Îļþ
/etc/DIR_COLORS É趨ÑÕÉ«
/etc/HOSTNAME É趨Óû§µÄ½ÚµãÃû
/etc/NETWORKING Ö»ÓÐ
YES±êÃ÷ÍøÂç´æÔÚ
/etc/host.conf Îļþ˵Ã÷Óû§µÄϵͳÈçºÎ²éѯ½ÚµãÃû
/etc/hosts É趨Óû§×ÔÒѵÄ
IPÓëÃû×ֵĶÔÓ¦±í
/etc/hosts.allow ÉèÖÃÔÊÐíʹÓÃ
inetdµÄ»úÆ÷ʹÓÃ
/etc/hosts.deny ÉèÖò»ÔÊÐíʹÓÃ
inetdµÄ»úÆ÷ʹÓÃ
/etc/hosts.equiv ÉèÖÃÔ¶¶Ë»ú²»ÓÃÃÜÂë
/etc/inetd.conf É趨ϵͳÍøÂçÊØ»¤½ø³Ì
inetdµÄÅäÖÃ
/etc/gateways É趨·ÓÉÆ÷
/etc/protocols É趨ϵͳ֧³ÖµÄÐÒé
/etc/named.boot É趨±¾»úΪÃû×Ö·þÎñÆ÷µÄÅäÖÃÎļþ
/etc/sysconfig/network-scripts/ifcfg-eth0 ÉèÖÃ
IP
/etc/resolv.conf ÉèÖÃ
DNS
/etc/X11 X WindowµÄÅäÖÃÎļþ
,xorg.conf »ò
XF86Config 這兩個
X Server µÄ設¶¨檔
/etc/fstab ¼Ç¼¿ª»úÒª
mountµÄÎļþϵͳ
/etc/inittab É趨ϵͳÆô¶¯Ê±
init½ø³Ì½«°ÑϵͳÉèÖóÉʲôÑùµÄ
runlevel
/etc/issue ¼Ç¼Ó
Ïà¹ØÎĵµ£º
ÕâÕó×ÓÔÚlinuxϵÄÒ»¸öÏîÄ¿ÐèÒªÓõ½epollÀ´³ÐÊÜÍøÂçµÄ¸ß¸ºÔØ£¬µ«ÊÇÔÚʹÓõĹý³ÌÖоÍÓöµ½ÁËһЩÎÊÌâ¡£
ÔÚÕû¸ö¹ý³ÌÖУ¬ÎÒÊÇÓÃEPOLL µÄ±ßÔµ´¥·¢Ä£Ê½À´ÊµÏÖÎÒÏëÒªµÄ¹¦ÄÜ¡£
ÎÒÊÇÕâÑùʵÏֵģºÔÚEPOLLÀïÃæ°Ñ¼àÌýµÄÃèÊö·û¸ø¼ÓÁ˽øÈ¥£¬È»ºóµ÷ÓÃepoll_waitÀ´¶Ô¿Í»§¶ ......
ÕªÒª
LinuxÄÚºËÄ£¿é±à³ÌµÄ×ÊÁÏÓÐЩ·×·±¸´ÔÓ£¬ÓеĹýÓÚ¼òµ¥£¬ÓеĹýÓÚÅÓÔÓ£¬ÎÒÊÔͼÓñʼǵÄÐÎʽÏë¶ÁÕßչʾÔõÑùÀ´½ø³ÌLinuxÄ£¿é±à³Ì£¬Á¦Í¼×öµ½¼òÃ÷¶óÒª£¬ÕâƪÎÄÕÂÒ²ÊÇ×÷Ϊ±¾È˱¸ÍüµÄ×ÊÁÏ£¬ËùÒÔÓÐЩµØ·½¹ýÓÚ¼òÂÔÊÇÄÑÃâµÄ¡£±¾À´ÕâƪÎÄÕµÄÄ¿µÄ¾ÍÊÇÈÃÓû§ÖªÆäÈ»£¬ÖÁÓÚËùÒÔÈ»»¹ÊÇÇë²Î¿¼ÏàÓ¦µÄ×ÊÁÏ£¬Æäʵ×îºÃµÄ×ÊÁÏĪ¹ýÓÚLinux ......
ǰһƪÎÄÕÂдµÄÔÚAPACHE°²×°MOD_PYTHONµÄ¾¹ý,Æäʵͦ¼òµ¥,¾ÍÊÇ°æ±¾²»¼æÈݵÄÎÊÌâ.Õâ´ÎÎÒ´ó¸Å˵ϲ¿ÊðDJANGOµÄ¹ý³Ì.
ÏÈÐÞ¸ÄAPACHEÅäÖÃÎļþ,ʹÆä¼ÓÔØmod_pythonÄ£¿é
LoadModule python_module libexec/mod_python.so
ÔËÐÐÃüÁî²é¿´
bin/httpd -M¿ÉÒÔ¿´µ½
python_module (shared)
Syntax OK
˵Ã÷apacheÒѾ³É¹¦¼Ó ......
»ù±¾¸ÅÄ
1> tty(ÖÕ¶ËÉ豸µÄͳ³Æ):
ttyÒ»´ÊÔ´ÓÚTeletypes£¬»òteletypewriters£¬ÔÀ´Ö¸µÄÊǵ紫´ò×Ö»ú£¬ÊÇͨ¹ý´®ÐÐÏßÓôòÓ¡»ú¼üÅÌͨ¹ýÔĶÁºÍ·¢ËÍÐÅÏ¢µÄ¶«Î÷£¬ºóÀ´ÕⶫÎ÷±»¼üÅ̺ÍÏÔʾÆ÷È¡´ú£¬ËùÒÔÏÖÔÚ½ÐÖն˱ȽϺÏÊÊ¡£
ÖÕ¶ËÊÇÒ»ÖÖ×Ö·ûÐÍÉ豸£¬ËûÓжàÖÖÀàÐÍ£¬Í¨³£Ê¹ÓÃttyÀ´¼ò³Æ¸÷ÖÖÀàÐ͵ÄÖÕ¶ËÉ豸¡£
2> pty£¨ÐéÄâÖ ......
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
µ±½ñ£¬²»ÉÙ
Linux
Óû§Ò²Ê¹ÓÃÆäËû²Ù×÷ϵͳ£¬ÓÐʱÕâÑù£¬ÓÐʱÄÇÑù£¬ÄÑÓÚ¾«È·Í³¼Æ¡£Ö¤¾ÝºÎÔÚ£¿
5
ÔÂ
7
ÈÕ£¬
www.w3couter.com
ÍøÕ¾·¢²¼Ã¿ÔÂͳ¼ÆÊý ......