CentOS+Nginx+PHP+MySQL»·¾³ÅäÖÃ(1)_PHPÓ¦ÓÃ_ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØ--Powered by WWW.RONGSEN.COM.CN

CentOS+Nginx+PHP+MySQL»·¾³ÅäÖÃ(1)

×÷ÕߣººÚ¿Í·ÀÏßÍø°²PHPά»¤»ùµØ À´Ô´£ººÚ¿Í·ÀÏßÍø°²PHPά»¤»ùµØ ä¯ÀÀ´ÎÊý£º0

±¾Æª¹Ø¼ü´Ê£º»·¾³ÅäÖàx86_64
ºÚ¿Í·ÀÏßÍø°²ÍøѶ£º   PHP 5.3.1MySQL 5.0.89Nginx 0.8.33 »ò 0.7.65 £¨¿ÉÑ¡£©Õâ¸ö¿É±ÈÍøÉÏÁ÷´«µÄʲôһ¼ü°²×°°üÒªºÃµÃ¶à£¬Ç¿ÁÒÍƼö´Ë·¨°²×°£¬ÊʺÏËùÓвËÄñºÍ¸ßÊÖ¡£ÎÒ·þÎñÆ÷ÉÏÈ«ÓõÄÔ´´úÂë±àÒë°²×°£¬Ò²ºÃ²»µ½ÄÄ...

   PHP 5.3.1

MySQL 5.0.89

Nginx 0.8.33 »ò 0.7.65 £¨¿ÉÑ¡£©

Õâ¸ö¿É±ÈÍøÉÏÁ÷´«µÄʲôһ¼ü°²×°°üÒªºÃµÃ¶à£¬Ç¿ÁÒÍƼö´Ë·¨°²×°£¬ÊʺÏËùÓвËÄñºÍ¸ßÊÖ¡£ÎÒ·þÎñÆ÷ÉÏÈ«ÓõÄÔ´´úÂë±àÒë°²×°£¬Ò²ºÃ²»µ½ÄÄÈ¥£¬»¹ºÜ·Ñ¾¢¡£ÎÒÕâ¸ö×°ÍêÒѾ­°üº¬ php µÄһЩ³£ÓÃÀ©Õ¹£¬ PDO£¬eaccelerator£¬memcache£¬tidyµÈµÈ¡£

CentOS ×îС»¯°²×°£¬È»ºóÏÈн¨Ò»¸ö repo

# vi /etc/yum.repos.d/centos.21andy.com.repo

·ÅÈëÈçÏÂÄÚÈÝ

[21Andy.com]
name=21Andy.com Packages for Enterprise Linux 5 - $basearch
baseurl=http://www.21andy.com/centos/5/$basearch/
enabled=1
gpgcheck=0
protect=1


ÆôÓÃ EPEL repo

CentOS i386 ÊäÈëÈçÏÂÃüÁî

rpm -ihv http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm

CentOS x86_64 ÊäÈëÈçÏÂÃüÁî

rpm -ihv http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm

È»ºóµ¼Èëkey

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL

¸´ÖÆ´úÂë

OK£¬Ò»¼ü°²×°°É

yum -y install nginx mysql-server php-fpm php-cli php-pdo php-mysql php-mcrypt php-mbstring php-gd php-tidy php-xml php-xmlrpc php-pear php-pecl-memcache php-eaccelerator


×îºó yum -y update һϣ¬È«ÊÇ×îеÄ

Èç¹û nginx ÄãÒªÓà 0.7.65 ×îÐÂÎȶ¨°æ£¬°Ñ

yum -y install nginx

»»³É

yum -y install nginx-stable

¾Í¿ÉÒÔÁË

×°ÍêÄãÒѾ­¿ÉÒÔÕâÑùÍæÁË

service mysqld start

service php-fpm start

service nginx start

±ðÍüÁËÉèÖÿª»úÆô¶¯

chkconfig --level 345 mysqld on

chkconfig --level 345 php-fpm on

chkconfig --level 345 nginx on

ÅäÖÃÎļþ¶¼ÔÚ /etc ÏÂ×Ô¼ºÕÒ

¿´¿´°²×°¶à×Ô¶¯

    Dependencies Resolved

    ==========================================================
    Package Arch Version Repository Size
    ==========================================================
    Installing:
    mysql x86_64 5.0.89-1.el5 21Andy.com 3.5 M
    mysql-server x86_64 5.0.89-1.el5 21Andy.com 10 M
    nginx x86_64 0.8.33-3.el5 21Andy.com 422 k
    php-cli x86_64 5.3.1-2.el5 21Andy.com 2.4 M
    php-eaccelerator x86_64 2:0.9.6-1.el5 21Andy.com 118 k
    php-fpm x86_64 5.3.1-2.el5 21Andy.com 1.2 M
    php-gd x86_64 5.3.1-2.el5 21Andy.com 110 k
    php-mbstring x86_64 5.3.1-2.el5 21Andy.com 1.1 M
    php-mcrypt x86_64 5.3.1-2.el5 21Andy.com 27 k
    php-mysql x86_64 5.3.1-2.el5 21Andy.com 84 k
    php-pdo x86_64 5.3.1-2.el5 21Andy.com 91 k
    php-pear noarch 1:1.9.0-1.el5 21Andy.com 420 k
    php-pecl-memcache x86_64 2.2.5-3.el5 21Andy.com 44 k
    php-tidy x86_64 5.3.1-2.el5 21Andy.com 31 k
    php-xml x86_64 5.3.1-2.el5 21Andy.com 115 k
    php-xmlrpc x86_64 5.3.1-2.el5 21Andy.com 48 k
    Installing for dependencies:
    gmp x86_64 4.1.4-10.el5 base 201 k
    libXaw x86_64 1.0.2-8.1 base 329 k
    libXmu x86_64 1.0.2-5 base 63 k
    libXpm x86_64 3.5.5-3 base 44 k
    libedit x86_64 2.11-2.20080712cvs.el5 epel 80 k
    libmcrypt x86_64 2.5.8-4.el5.centos extras 105 k
    libtidy x86_64 0.99.0-14.20070615.el5 epel 140 k
    php-common x86_64 5.3.1-2.el5 21Andy.com 554 k
    sqlite2 x86_64 2.8.17-5.el5 21Andy.com 165 k
    t1lib x86_64 5.1.1-7.el5 epel 208 k
    Updating for dependencies:
    libevent x86_64 1.4.12-1.el5 21Andy.com 129 k

    Transaction Summary
    ==========================================================
    Install 26 Package(s)
    Update 1 Package(s)
    Remove 0 Package(s)
 


µã»÷ÏÂÒ»Ò³£¬²é¿´Nginx + php-fpm Benchmark ÐÔÄܲâÊÔ

    ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤·½°¸±¾ÆªÁ¬½Ó£ºhttp://www.rongsen.com.cn/show-13844-1.html
Íøվά»¤½Ì³Ì¸üÐÂʱ¼ä:2012-03-30 04:57:58  ¡¾´òÓ¡´ËÒ³¡¿  ¡¾¹Ø±Õ¡¿
ÎÒÒªÉêÇë±¾Õ¾£ºNµã | ºÚ¿Í·ÀÏß¹ÙÍø |  
רҵ·þÎñÆ÷ά»¤¼°Íøվά»¤ÊÖ¹¤°²È«´î½¨»·¾³£¬ÍøÕ¾°²È«¼Ó¹Ì·þÎñ¡£ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØÕÐÉ̽øÐÐÖУ¡QQ:29769479

footer  footer  footer  footer