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

Linux+Apache+Mysql+PhpÏêϸ°²×°Îĵµ

ËùÐèÈí¼þÔ´´úÂë°ü£º
httpd-2.2.4.tar.gz   mysql-5.0.27.tar.gz   php-5.2.1.tar.bz2
freetype-2.3.2.tar.gz   gd-2.0.34.tar.gz   jpegsrc.v6b.tar.gz
libpng-1.2.8.tar.bz2   libxml2-2.6.24.tar.bz2  zlib-1.2.2.tar.gz
°²×°Ë³Ðò£ºapache -> mysql -> freetype -> jpegsrc.v6b -> libpng -> libxml -> zlib -> gd -> php  ( freetype,jpegsrc.v6b,libxml,zlib,libpng µÄ°²×°Ë³Ðò²»ÏÞ)
Ô¼¶¨Ä¿Â¼£º/usr/local/src  Èí¼þÔ´´úÂë°ü´æ·ÅλÖÃ
          /usr/local/software_name  Ô´Âë°ü±àÒ밲װλÖÃ
°²×°ÃüÁ
1  apache
# cd  /usr/local/src
# t ar  xzvf  http-2.2.4.tar.gz
# cd  http-2.2.4
# ./configure \
        "--prefix=/usr/local/apache2" \
        "--enable-module=so" \
        "--enable-deflate=shared" \
        "--enable-expires=shared" \
        "--enable-rewrite=shared" \
        "--enable-static-support" \
        "--enable-static-htpasswd" \
        "--enable-static-htdigest" \
        "--enable-static-rotatelogs" \
        "--enable-static-logresolve" \
        "--enable-static-htdbm" \
        "--enable-static-ab" \
        "--enable-static-checkgid" \
        "--disable-userdir"
# make
# make install
# /usr/local/apache2/bin/apachectl start
³öÏÖ´íÎóµÄ»°¾ÍÊÇÒòΪÓòÃûµÄ¹Øϵ£¬Ö±½Ó´Óhttp.confÀïÃæÐ޸İÑÓòÃû¸Ä³É±¾µØIP
# /usr/local/apache2/bin/apachectl stop
2.  mysql
# tar xzvf mysql-5.0.27.tar.gz
# cd mysql-5.0.27
# ./configure \
     &n


Ïà¹ØÎĵµ£º

LinuxÏÂJDK1.5µÄ°²×°ºÍÖÐÎÄÏÔʾ

1.°²×°JDK
Ê×ÏÈ£¬ÏÂÔØ×îа汾µÄLinux ƽ̨µÄJDK£¬½¨ÒéÏÂÔØRPM×Ô½âѹ¸ñʽµÄÀýÈç±¾ÎÄËùÓÃjdk-1_5_0_06-linux-i586-rpm.bin£¬ÏÈÏÂÔØÎļþµ½/tmp£¬´ò¿ªÖնˣ¬ÊäÈë:
cd /tmp
su
ÊäÈërootÃÜÂë
Ö±½ÓÖ´ÐÐÎļþ£º
./jdk-1_5_0_06-linux-i586-rpm.bin
È»ºó»á³öÏÖsunµÄЭÒ飨Sun Microsystems, Inc. Binary Code License Agreeme ......

Linux Ô´Âë°²×°Mysql5.5

¹«Ë¾µÄ·þÎñÆ÷ÊÇCentOS 5.4(Final)°æµÄ£¬½ñÌìÔÚÉÏÃæ°²×°ÁËÒ»»Ømysql5.5£¬¼Ç¼ÈçÏ£º
1¡¢´Óhttp://blog.s135.com/soft/linux/nginx_php/mysql/mysql-5.5.2-m2.tar.gz ÏÂÔØÔ´Âë°²×°°üµ½/usr/local/src
2¡¢tar zxvf mysql-5.5.2-m2.tar.gz ½âѹµ½/usr/local/src/mysql-5.5.2-m2ÏÂ
    cd mysql-5.5.2-m2/
&n ......

linux·½ÃæµÄÔÓ̸

1.ÔÚshell½Å±¾ÖлáÓõ½ifÅжϣ¬ÊÂʵÉϾÍÊÇtest¼Ó²ÎÊýÖ´ÐеĽá¹û£¬±ÈÈ磺
if test -f /xxx ;then YYY ;fi£¬µ«ÊÇ»¹ÓÐÁíÒ»ÖÖд·¨£¬ÄǾÍÊÇif [ abc ];then YYY£¬Êµ¼ÊÉÏ“[”Ò²ÊÇÒ»¸öÃüÁÓÃwhereis [¿ÉÒÔ֤ʵ£¬¸Ã“[”³ÌÐòÖбØȻҪÓÐÒ»¸ö“]”×÷Ϊ²ÎÊý£¬È»ºóÅжÏ$1µ½"]"Ö®¼äµÄ²ÎÊýµÄ ......

Linux ±à³Ì¾­µäÊé¼®ÍƼö

³ÉΪһÃû¾«Í¨ Linux ³ÌÐòÉè¼ÆµÄ¸ß¼¶³ÌÐòÔ±Ò»Ö±ÊDz»ÉÙÅóÓÑ×Î×ÎÒÔÇóµÄÄ¿±ê¡£¸ù¾ÝÖлªÓ¢²ÅÍøͳ¼ÆÊý¾Ý£¬±±¾©µØÇø Linux ³ÌÐòÔ±ÔÂнƽ¾ùΪ Windows ³ÌÐòÔ±µÄ 1.8 ±¶¡¢Java ³ÌÐòÔ±µÄ 2.6 ±¶£¬ Linux ³ÌÐòÔ±ÄêÖÕ½±½ðƽ¾ùΪ Windows ³ÌÐòÔ±µÄ 2.9 ±¶¡£Í¬Ê±Êý¾ÝÏÔʾ£¬Ëæ׏¤×÷¾­ÑéµÄÔö³¤£¬ Linux ³ÌÐòÔ±Óë Windows ³ÌÐòÔ±µÄÊÕÈë²î¾à» ......

PHPµÄ»ù´¡ÖªÊ¶

¿´ÁËЩPHPµÄ»ù´¡ÖªÊ¶£¬×Ô¼ºÔÚÕâÀï×ܽáÏ£º
1£¬ÔÚHTMLǶÈëPHP½Å±¾ÓÐÈýÖÖ°ì·¨£º
<script language="php">
//ǶÈ뷽ʽһ
echo("test");
</script>
<?
//ǶÈ뷽ʽ¶þ
echo "<br>test2";
?>
<?php
//ǶÈ뷽ʽÈý
echo "<br>test3";
?>
¡¡¡¡»¹ÓÐÒ»ÖÖǶÈ뷽ʽ£¬¼´Ê¹Óà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ