ÏÈÀ´½âÊÍһϣ¬Ê²Ã´ÊÇ LAMP¡£ÕýÈç±êÌâËùÑÔ£¬LAMP ʵ¼ÊÉϾÍÊÇ Linux¡¢Apache¡¢MySQL¡¢PHP ËĸöÃû³ÆµÄËõд£¬µ±È»×îºóÒ»¸ö ¡°P¡± »¹ÓÐÆäËû˵·¨ÊÇ Perl »òÕß Python¡£²»Óöà˵ÁË£¬±¾ÎĽ²½âµÄ¾ÍÊÇ Linux¡¢Apache¡¢MySQL¡¢PHP ÕâËĸö¶«Î÷£¬ËùÒÔ¾ÍÕâÑù½âÊÍÁË¡£
¡¡¡¡×Ô¼ººÜÔç¾ÍÔÚ×öÍøÕ¾£¬×î³õÍæµÄÊÇ ASP£¬ºóÀ´Ö÷ÒªÑо¿ .Net£¬Ò²Óà .Net ¸ã¹ýÀàËƵĿª·¢¡£µ«ÊÇ×Ô¼º×îÖ÷Òª»¹ÊÇÏë°ÑÍøÕ¾×öÆðÀ´£¬ÓÚÊǺõ¾Í½«Ö÷Òª¾«Á¦»¨ÔÚÁËÍøÕ¾ÔËÓªÉÏÁË£¬µ±È»½¨Õ¾¾ÍÑ¡ÓÃÁËÊÐÃæÉϳÉÊìµÄһЩ CMS »òÕßÊDz©¿Í³ÌÐò¡£Ä¿Ç°µÄ CMS ºÍ²©¿Í³ÌÐòʵ¼ÊÉ϶¼¿ÉÒÔÈÚÈëµ½Ò»Æð£¬ÒòΪÆäÄÚÈݵıíÏÖÐÎʽÉÏÏ൱µÄ½Ó½ü£¬¹ÊÑ¡ÔñÄÄÒ»¿éÀ´×ö£¬ÍêÈ«¿´×Ô¼ºµÄÌس¤ÁË¡£
¡¡¡¡ÓÉÓÚ Linux ºÍ PHP µÄÃâ·Ñ£¬ÔÚ¹úÍâÊÇÏ൱µÄÁ÷ÐС£¹úÄڴ󲿷ÖÖ÷»ú¶¼ÊÇ Windows ƽ̨£¬¶øÎÒѧµÄ ASP ºÍ .Net ¸ÕºÃÄÜ´îÅäÔËÐÐÆðÀ´¡£ºóÀ´ÓÉÓÚÖÖÖÖÔÒò£¬ÎÒµÄÍøÕ¾¶¼ÒÆÃñµ½Á˹úÍ⣬¶øÔÚ¹úÍâÕÒÒ»¸öÐÔ¼Û±ÈºÃµÄ Windows Ö÷»úʵÔÚÊǼþÄÑÊ£¬²»¹âÓïÑÔÉϵÄ×è°£¬¹úÍâ°æȨÒâʶºÜºÃ£¬ËùÒÔºÜÉÙÓÐÐÔ¼Û±ÈºÃµÄ Windows Ö÷»ú¡£ÎÒ²»µÃ²»×ªÏòÁË Linux ƽ̨¡£¶øÇҷdz£Á÷ÐÐµÄ WordPress ÎüÒýÁËÎÒ£¬¹ÊÄ¿Ç°Ö÷ҪעÒâÁ¦¾Í¼¯ÖÐÔÚ Linux Ö÷»úºÍ PHP ÉÏ¡£ËäÈ»×Ô¼º¶Ô PHP »ù±¾²»Á˽⣬ºÇºÇ¡£
¡¡¡¡ËäÈ» Linux ƽ̨ÉϺõÄ×é¼þ²»Ö¹ Apache Ò»¸ö£¬ÀýÈç¶íÂÞ˹ÈË¿ª·¢µÄ Nginx£¬»¹ÓÐÐÔÄܳ¬Ç¿µÄ LiteSpeed µÈµÈ£¬ÕâÁ½ÕßÎÒ¶¼Óùý£¬Ç°ÕßÒÔ¸ßЧ¡¢×ÊÔ´Õ¼ÓõÍΪÌص㣬¾Ý˵ÌÚѶÍø¾ÍÊÇ»ùÓÚ´ËÔËÐеģ¬ºóÕßÊÇÒÔÐÔÄÜÇ¿´óÖø³Æ£¬Í¬Ñù¾Ý˵ÕâÊÇ WordPress ¹Ù·½ÍƼöµÄÓÃÀ´ÔËÐÐ WordPress ×î¼Ñ×é¼þ¡£µ«ÊÇÄØ£¬¸÷ÖÖÍøÉÏ×ÊÁϱíÃ÷£¬ËäÈ» Apache ÐÔÄÜ¡¢×ÊÔ´Õ¼Óò»ÈçÆäËû×é¼þ£¬µ«ÊÇ Apache ¿ª·¢µÄÄ¿±ê¾ÍÊÇÒÔÎȶ¨ÎªÖ÷¡£ÈκÎÒ»¸öÍøÕ¾ÄѵÀ²»ÊÇÏ£ÍûÄܹ»Îȶ¨ÔËÐУ¿ËùÒÔÎÒ»¹ÊÇÑ¡Ôñѧϰ Apache À´×÷ΪÍøÕ¾µÄ·þÎñÆ÷»·¾³¡£Ñ§»áÁËÒ»¸ö£¬ÆäËû¾ÍÄܹ»¾ÙÒ»·´ÈýÁË¡£
¡¡¡¡Ò»°ãÇé¿öÏ£¬°²×°µÄ¶¼ÊÇ×îеÄÕýʽ°æ£¬³ý·ÇÄãÓÐÌØÊâÐèÇó£¬Òª°²×°Ö¸¶¨µÄ°æ±¾£¬±¾ÎÄÔݲ»ÌÖÂÛ¡£´Ó×î»ù´¡µÄ¿ªÊ¼£¬Ò»µãµãÍê³ÉÒ»¸ö¿ÉÓÃµÄ Linux Ö÷»ú¡£ÕâÀï¾Í¿ªÊ¼½éÉÜÈçºÎÔÚ CentOS 6.0 ÉÏ°²×° LAMP ×é¼þ¡£¾¹ýÈçÏÂÓï¾ä°²×°£¬Ä¿Ç°°²×°µ½µÄ°æ±¾Îª£º
[list=disc]
PHP£º5.3.2
Apache£º2.2.15
MySQL£º5.1.52
D.W_John ÓÚ 2014-08-31 09:19:54·¢±í:
лл·ÖÏí
wanglei123456 ÓÚ 2014-08-19 16:02:14·¢±í:
ÏëÎÊÒ»ÏÂÂ¥Ö÷£¬centOS7µÄͼÐνçÃæºÍÃüÁîÐнçÃæÅäÖÃlampÓÐʲôÇø±ðÂð£¿ÎªÊ²Ã´ÎÒÔÚͼÐνçÃæyum install apache Ö®ºó£¬/etc/httpd/conf/httpd.conf ˵ÕÒ²»µ½ÎļþÄØ£¿£¿
wanglei123456 ÓÚ 2014-08-19 16:00:16·¢±í:
ÕýÔÚÕÒÕâÑùµÄÎÄÕ£¬ÕæµÄ¸Ðлѽ£¬ÍíÉÏ»ØÈ¥¾ÍÊÔÊÔ
woshifeng ÓÚ 2013-04-06 10:22:22·¢±í:
лл·ÖÏí£¡
woshifeng ÓÚ 2013-04-06 10:22:01·¢±í:
Â¥Ö÷ÐÁ¿àÁË£¡
Ö»°®ÎåÈýÌì ÓÚ 2013-04-03 05:05:40·¢±í:
Îå¡¢½« PHP Ä£¿éºÍ MySQL Ä£¿é¹ØÁªÆðÀ´
¡¡¡¡»¹ÐèÒª½« PHP ºÍ MySQL ¹ØÁªÆðÀ´£¬²ÅÄÜÕý³£¹¤×÷¡£ËÑË÷Ä£¿é£º
[root@localhost ~]# yum search php
°²×°Ïà¹ØÄ£¿é£º
[root@localhost ~]# yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc
ÐèÒªÖØÆô Apache Ä£¿é²ÅÄÜÉúЧ£º
[root@localhost ~]# service httpd restart
¡¡¡¡ÔÙ´ÎˢиղŽ¨Á¢µÄ ¡°info.php¡± Ò³Ã棬ÍùÏÂÀÕÒµ½Ïà¹Ø MySQL Ä£¿é£¬¿´ÊÇ·ñ¼ì²âµ½Ïà¹ØÐÅÏ¢¡£
Èç¹û¿´µ½ÈçÉÏͼÏà¹ØÐÅÏ¢£¬Ôò˵Ã÷ MySQL ¹¤×÷Õý³£ÁË¡£
Áù¡¢×ܽá
¡¡¡¡µ½ÕâÀï¾Í½áÊøÁË£¬±¾ÎIJûÊöÁËÔÚ CentOS 6.0 ϵͳÏ LAMP ×é¼þ£¨Apache+MySQL+PHP£© µÄÏêϸ°²×°²½Ö裬¿ÉÒÔÈøü¶àÐÂÊÖÊìϤ·þÎñÆ÷ÅäÖû·¾³¡£
¡¡¡¡µ«Êǵ½ÕâÀ»¹Ö»Êǽ«»·¾³ÅäÖÃÍê±Ï£¬ºÜ¶à¶«Î÷»¹ÓÐǷȱ£¬¶øÇÒ»¹ÊÇһЩÖØÒªµÄÎÊÌ⣬ÀýÈçĿ¼µÄȨÏÞÅäÖÃÎÊÌ⣬»òÕßÊǹÜÀíÉϵÄÎÊÌ⣬Ïñ½¨Á¢ FTP µÈ¡£ÕâЩÄÚÈÝËæºó»áÂýÂý̸µ½¡£
±¾ÎÄת×Ô£ºhttp://www.laozhe.net/articles/302.html
Ö»°®ÎåÈýÌì ÓÚ 2013-04-03 05:05:31·¢±í:
Èý¡¢°²×° PHP
ÊäÈëÈçÏÂÖ¸Áî°²×° PHP:
[root@localhost ~]# yum install php
ÐèÒªÖØÐÂÆô¶¯ Apache ·þÎñ£º
[root@localhost ~]# service httpd restart
ËÄ¡¢²âÊÔ PHP Ïà¹ØÐÅÏ¢
¡¡¡¡Õⲽʵ¼ÊÉÏ¿ÉÒÔÊ¡ÂÔ£¬µ«ÊÇΪÁ˲âÊÔÊÇ·ñ°²×°³É¹¦£¬Äã¿ÉÒÔн¨Ò»¸ö PHP Ò³Ãæ½øÐвâÊÔ£¬Ê¹Óà vim ±à¼Æ÷н¨£º
[root@localhost ~]# vi /var/www/html/info.php
°´ ¡°i¡± ¼ü½øÐб༣¬ÊäÈ룺
phpinfo();
?>
±à¼Íê±Ï£¬°´ ¡°ESC¡± ¼üÍ˳ö±à¼Ä£Ê½£¬½Ó×ÅÊäÈ룺
:wq
È»ºó»Ø³µ£¬¼´±£´æ²¢Í˳ö¡£
¡¡¡¡´ËʱÄã¿ÉÒÔ·ÃÎÊÄãµÄÕ¾µãµØÖ·£¬ÀýÈç ¡°[url]http://192.168.1.2/info.php
Ö»°®ÎåÈýÌì ÓÚ 2013-04-03 05:05:20·¢±í:
¶þ¡¢°²×° Apache ×é¼þ
¡¡¡¡ÓÉÓÚ CentOS ÒѾ·â×°ÁË Apache£¬Ö±½ÓÔËÐа²×°£º
[root@localhost ~]# yum install httpd
ͬÑùÅäÖÃϵͳÈà Apache ËæϵͳÆô¶¯£º
[root@localhost ~]# chkconfig --levels 235 httpd on
ÅäÖÃÍê±Ï£¬Æô¶¯ Apache£º
[root@localhost ~]# service httpd start
¡¡¡¡´ËʱÒѾ¿ÉÒÔ·ÃÎÊÄãµÄ·þÎñÆ÷£¬²»³öÒâÍâµÄ»°£¬Äܹ»¿´µ½ ¡°Apache 2 Test Page powered by CentOS¡± µÄ²âÊÔÒ³Ãæ¡£×¢Ò⣬Èç¹ûÆäËû»úÆ÷·ÃÎÊÕą̂·þÎñÎÞ·¨ÏÔʾÕâ¸öÒ³Ã棬¶øÖ±½ÓÔÚÕą̂·þÎñÆ÷ÉÏ¿ÉÒÔ·ÃÎʵĻ°£¬Ò»°ãÇé¿öÏÂÊÇ CentOS ×Ô´øµÄ·À»ðǽ½ûÖ¹ÁË¡£ÄãÖ»ÐèÒª½øÈë·À»ðǽ£¬½« ¡°WWW¡± ¶ÔÓ¦µÄ ¡°80¡± ¶Ë¿Ú´ò¿ª¼´¿É¡£
×¢Ò⣺ÔÚ CentOS ÖÐ Apache µÄĬÈϸùĿ¼ÊÇ /var/www/html£¬ÅäÖÃÎļþ /etc/httpd/conf/httpd.conf¡£ÆäËûÅäÖô洢ÔÚ /etc/httpd/conf.d/ Ŀ¼¡£
Ö»°®ÎåÈýÌì ÓÚ 2013-04-03 05:05:09·¢±í:
Ò»¡¢°²×° MySQL
Ê×ÏÈÀ´½øÐÐ MySQL µÄ°²×°¡£´ò¿ª³¬¼¶Öնˣ¬ÊäÈ룺
[root@localhost ~]# yum install mysql mysql-server
°²×°Íê±Ï£¬Èà MySQL Äܹ»Ëæϵͳ×Ô¶¯Æô¶¯£º
[root@localhost ~]# chkconfig --levels 235 mysqld on
[root@localhost ~]# /etc/init.d/mysqld start
ÉèÖà MySQL Êý¾Ý root ÕË»§µÄÃÜÂ룺
[root@localhost ~]# mysql_secure_installation
µ±³öÏÖÈçÏÂÌáʾʱºòÖ±½Ó°´»Ø³µ£º
Enter current password for root
³öÏÖÈçÏÂÔٴλسµ£º
Set root password? [Y/n]
³öÏÖÈçÏÂÌáʾÊäÈëÄãÐèÒªÉèÖõÄÃÜÂ룬»Ø³µºóÔÚÊäÈëÒ»´ÎÈ·ÈÏ£º
New password:
½ÓÏÂÀ´»¹»áÓÐËĸöÈ·ÈÏ£¬·Ö±ðÊÇ£º
Remove anonymous users? [Y/n]
Disallow root login remotely? [Y/n]
Remove test database and access to it? [Y/n]
Reload privilege tables now? [Y/n]
Ö±½Ó»Ø³µ¼´¿É¡£