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

LINUXƽ̨²¿Êðapache+mod_python+django


ǰһƪÎÄÕÂдµÄÔÚAPACHE°²×°MOD_PYTHONµÄ¾­¹ý,Æäʵͦ¼òµ¥,¾ÍÊÇ°æ±¾²»¼æÈݵÄÎÊÌâ.Õâ´ÎÎÒ´ó¸Å˵ϲ¿ÊðDJANGOµÄ¹ý³Ì.
ÏÈÐÞ¸ÄAPACHEÅäÖÃÎļþ,ʹÆä¼ÓÔØmod_pythonÄ£¿é
LoadModule python_module libexec/mod_python.so
ÔËÐÐÃüÁî²é¿´
bin/httpd -M¿ÉÒÔ¿´µ½
 python_module (shared)
Syntax OK
˵Ã÷apacheÒѾ­³É¹¦¼ÓÔØmod_python.
ÏÂÃæÎÒ˵ÏÂÎÒµÄʵ¼ÊµÄ»·¾³ºÍÏîÄ¿Çé¿ö:
/infoware/xx/webÊÇdjango³ÌÐòĿ¼
/infoware/_conf/xx/ÊÇ¿ØÖÆdjangoµÄ³ÌÐò»¹ÓÐһЩÅäÖÃ(ÓÐЩÅäÖñäÁ¿Ã»ÓÐдÔÚsettings),ÕâÒ»²½¿ÉÒÔ²»ÐèÒª,ÒòΪ´ó¶àÊýÈË»áÖ±½ÓÅäÖÃsettingsÎļþµÄ.ÎÒÊÇÔÚÐéÄâÖ÷»úÉϲÙ×÷.
–CENTOS5.2+APACHE2.2.11+PYTHON 2.4.3+MOD_PYTHON3.3.1+DJANGO 0.96
ÏÂÃæÊÇapacheÅäÖÃÎļþ
—————————————————-
<VirtualHost *:80>
        ServerAdmin webmaster@xxcom
        DocumentRoot “/infoware/xx/web”
        ServerName www1.xx.com
        ServerAlias www1.xx.com
        ErrorLog “/var/log/apache/xx/xx_error_log”
        CustomLog “/var/log/apache/xx/xx_access_log” common
        <Directory “/infoware/xx/web”>
            Options Indexes FollowSymLinks
            AllowOverride None
            Order allow,deny
            Allow from all
        </Directory>
        <Location “/”>
            SetHandler python-program
    &nb


Ïà¹ØÎĵµ£º

LinuxÄں˵Äioctlº¯Êýѧϰ

 ÎÒÕâÀï˵µÄioctlº¯ÊýÊÇÔÚÇý¶¯³ÌÐòÀïµÄ£¬ÒòΪÎÒ²»ÖªµÀ»¹ÓÐûÓбðµÄ³¡ºÏÓõ½ÁËioctl£¬ ËùÒԾ͹涨ÁËÎÒÃÇÌÖÂ۵ķ¶Î§¡£ÎªÊ²Ã´ÒªÐ´ÆªÎÄÕÂÄØ£¬ÊÇÒòΪÎÒÇ°Ò»Õó×Ó±»ioctl¸ø¸ã»ìÁË£¬Õ⼸Ìì²ÅŪÃ÷°×Ëü£¬ÓÚÊÇÔÚÕâÀïÇåÀíÒ»ÏÂÍ·ÄÔ¡£
Ò»¡¢ ʲôÊÇioctl¡£
ioctlÊÇÉ豸Çý¶¯³ÌÐòÖжÔÉ豸µÄI/OͨµÀ½øÐйÜÀíµÄº¯Êý¡£Ëùν¶ÔI/OͨµÀ½øÐÐ ......

LinuxÄÚºËѧϰ(תÌû+Ô­´´)

     ²Ù×÷ϵͳÊÇÒ»¸ö·Ç³£¸´ÔÓµÄÈí¼þ,Éè¼ÆºÍʵÏÖÒ»¸ö²Ù×÷ϵͳÐèÒª¾ßÓо«ÉîµÄÀíÂÛ֪ʶºÍ¸ß³¬µÄʵ¼ùÄÜÁ¦.´«Í³µÄ²Ù×÷ϵͳÉè¼Æ¿Î³Ì,¹ýÓÚÆ«ÖØÀíÂÛµÄѧϰ,ȱ·¦¶Ôʵ¼ùµÄÖ¸µ¼¡£Ï£ÍûÉîÈëѧϰ²Ù×÷ϵͳµÄÉè¼Æ£¬×îºÃµÄ·½·¨¾ÍÊÇÕÒÒ»¸ö²Ù×÷ϵͳÀ´×Ô¼ºÊµ¼ù£¬ÔÚʵ¼ùÖÐѧϰ£¬¿ÉÒÔ´´Ôì³öÆæ¼£¡£
     ......

ºÏÀíÉèÖÃLinuxµÄswap·ÖÇø

¡¡Ê²Ã´ÊÇSwap?
¡¡¡¡Swap£¬¼´½»»»Çø£¬³ýÁË°²×°LinuxµÄʱºò£¬ÓжàÉÙÈ˹ØÐĹýËüÄØ?Æäʵ£¬SwapµÄµ÷Õû¶ÔLinux·þÎñÆ÷£¬ÌرðÊÇWeb·þÎñÆ÷µÄÐÔÄÜÖÁ¹ØÖØÒª¡£Í¨¹ýµ÷ÕûSwap£¬ÓÐʱ¿ÉÒÔÔ½¹ýϵͳÐÔÄÜÆ¿¾±£¬½ÚʡϵͳÉý¼¶·ÑÓá£
¡¡¡¡SwapµÄÔ­ÀíÊÇÒ»¸ö½Ï¸´ÔÓµÄÎÊÌ⣬ÐèÒª´óÁ¿µÄƪ·ùÀ´ËµÃ÷¡£ÔÚÕâÀïÖ»×÷¼òµ¥µÄ½éÉÜ£¬ÔÚÒÔºóµÄÎÄÕÂÖн«ºÍ´ó¼ÒÏêÏ ......

linuxµÄ¼òµ¥ÍøÂçÅäÖÃ

1¡¢RootµÇ¼
2¡¢²éip:ifcongfig
3¡¢ÐÞ¸ÄÍøÂçÉèÖÃ
vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=VirtualBox
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.2
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
4¡¢Ìí¼ÓÐÂÓû§º ......

LinuxÉÏApache·´Ïò´úÀíÖ®ProxyPass IISÍøÕ¾×ܽá


   ÔÚ°ÑÕâƪ×ܽáдÏÂÀ´Ö®Ç°£¬ÎÒÏë˵¼¸¾ä»°£º¡¡¹¤×÷ºÍ°®ºÃǧÍò±ð»ìÔÚÒ»Æð£¬ÐĽ¹Á¦´á°¡£¡ÎªÁËÍê³ÉÒ»¸ö¿´ËÆÒÔÇ°ºÜ¼òµ¥²¢ÇÒÒ²Óйý³É¹¦¾­ÑéµÄÈÎÎñ£¬ÎҸɵ½ÏÖÔÚ¡£±¾À´ÒÔΪͦ¼òµ¥µÄÊÂÇ飬¼ÓÉÏÄDz»ÕùÆøµÄPromise MB Fasttrak133 µÄRAIDÇý¶¯ÕæµÄÈÃÎÒÁìÂÔµ½ÁËWindows·þÎñÆ÷ƽ̨µÄ÷ÈÁ¦£ºÒ»¸ö×Ö£ºÕæTMDÀã¡·þÎñÆ÷°²×°µÄʱºò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ